class ApplicationTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app(config_name='testing')
self.app_ctx = self.app.app_context()
self.app_ctx.push()
db.create_all()
self.client = self.app.test_client()