Пример #1
0
def test_index():
    # fires off a task queue and should pass without exceptions
    response = app.get('/')
    assert 'Hello world!' in str(response)
Пример #2
0
 def test_index(self):
     # this will call get_current_user()
     response = app.get('/')
     self.assertIn('*****@*****.**', response.body)
Пример #3
0
 def test_index(self):
     response = app.get('/')
     self.assertIn('Hello world!', response.body)
     self.assertEqual(response.status_int, 200)
Пример #4
0
def test_should_return_200_status():
    response = app.get("/helloworld")
    assert response.status_code == 200
Пример #5
0
def test_should_return_hello_world_body():
    response = app.get("/helloworld")
    assert b"Hello World!" in response.data
Пример #6
0
def test_index():
    # fires off a task queue and should pass without exceptions
    response = app.get('/')
    assert 'Hello world!' in str(response)
Пример #7
0
 def test_index(self):
     response = app.get('/')
     self.assertIn('Hello world!', response.body)
     self.assertEqual(response.status_int, 200)