Esempio n. 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')
Esempio n. 2
0
 def setUp(self):
     super(RestApiTestCase, self).setUp()
     TestModel.drop_table(True)
     APIKey.drop_table(True)
     APIKey.create_table()
     TestModel.create_table()