def test_function_returns_hello_world(self):
     self.assertEqual(hello_world("world"), "Hello world!")
 def test_function_returns_hello_name(self):
     self.assertEqual(hello_world("Lucy"), "Hello Lucy!")
def test_check_given_name():
    assert hello_world("jimbo") == "Hello, jimbo"
def test_check_default():
    assert hello_world() == "Hello, World!"
Exemple #5
0
from helloworld import hello_world

if __name__ == '__main__':
    hello_world()
 def hello_world(self):
     self.assertEqual(hello_world(), "Hello World!")
Exemple #7
0
 def test_hello_world(self):
     self.assertEqual("Hello, World!", hello.hello_world())