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