def setUp(self): super(RestApiTestCase, self).setUp() TestModel.drop_table(True) APIKey.drop_table(True) APIKey.create_table() TestModel.create_table()