def test_api(self): tester=app.test_client(self) response = tester.get('/', content_type='application/json') self.assertEqual(response.status_code,200)