Exemple #1
0
    def setUp(self):
        super(RestApiKeyAuthTestCase, self).setUp()

        self.tm1 = TestModel.create(data='test1')
        self.tm2 = TestModel.create(data='test2')

        self.k1 = APIKey.create(key='k', secret='s')
        self.k2 = APIKey.create(key='k2', secret='s2')
Exemple #2
0
    def setUp(self):
        super(RestApiKeyAuthTestCase, self).setUp()

        self.tm1 = TestModel.create(data='test1')
        self.tm2 = TestModel.create(data='test2')

        self.k1 = APIKey.create(key='k', secret='s')
        self.k2 = APIKey.create(key='k2', secret='s2')
Exemple #3
0
 def setUp(self):
     super(RestApiTestCase, self).setUp()
     TestModel.drop_table(True)
     APIKey.drop_table(True)
     APIKey.create_table()
     TestModel.create_table()
Exemple #4
0
 def setUp(self):
     super(RestApiTestCase, self).setUp()
     TestModel.drop_table(True)
     APIKey.drop_table(True)
     APIKey.create_table()
     TestModel.create_table()