import main main.hello() print('print hello from the second main')
def test_hello(): assert "Hello" == main.hello()
def test_hello_calls_output_func(output_saying_mock): import main main.hello() output_saying_mock.assert_called()
def test_hello_xss(app): with app.test_request_context(json={'name': '<script>alert(1)</script>'}): res = main.hello(flask.request) assert '<script>' not in res
def test_main_has_hello_func(): main.hello()
def test_hello(): assert main.hello() == "hello world"
def test_hello_empty_json(app): with app.test_request_context(json=''): res = main.hello(flask.request) assert 'Hello World!' in res
def test_hello_no_args(app): with app.test_request_context(): res = main.hello(flask.request) assert 'Hello World!' in res
def test_hello_get(app): with app.test_request_context(query_string={'name': 'test'}): res = main.hello(flask.request) assert 'Hello test!' in res
def test_hello(): assert hello("taka") == "hello, taka"
def test_main(): assert main.hello() == 'ok';
def test_hello_world(self): self.assertEqual(main.hello(), "Hello, World!")
def test_main(self): h = hello() self.assertEqual(h, "hello")
def hello(): return main.hello(request)
def test_hello(self): self.assertEqual(hello(), "Hello, world!")
def test_hello_args(app): with app.test_request_context(json={'name': 'test'}): res = main.hello(flask.request) assert 'Hello test!' in res
def test_hello(self): self.assertEqual(hello(None), 'Hello world!!!')
def test_hello(self): self.assertEqual(hello(), 'Hello', 'wrong message')