def test_index(): # fires off a task queue and should pass without exceptions response = app.get('/') assert 'Hello world!' in str(response)
def test_index(self): # this will call get_current_user() response = app.get('/') self.assertIn('*****@*****.**', response.body)
def test_index(self): response = app.get('/') self.assertIn('Hello world!', response.body) self.assertEqual(response.status_int, 200)
def test_should_return_200_status(): response = app.get("/helloworld") assert response.status_code == 200
def test_should_return_hello_world_body(): response = app.get("/helloworld") assert b"Hello World!" in response.data