Esempio n. 1
0
File: test.py Progetto: Trii/NoseGAE
def test_index():
    # fires off a task queue and should pass without exceptions
    response = app.get('/')
    assert 'Hello world!' in str(response)
Esempio n. 2
0
 def test_index(self):
     # this will call get_current_user()
     response = app.get('/')
     self.assertIn('*****@*****.**', response.body)
Esempio n. 3
0
File: test.py Progetto: Trii/NoseGAE
 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
Esempio 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)
Esempio n. 7
0
 def test_index(self):
     response = app.get('/')
     self.assertIn('Hello world!', response.body)
     self.assertEqual(response.status_int, 200)