def run_application_without_parameters(context): context.output = hello.get_greeting("")
def run_application_with_name(context): context.output = hello.get_greeting(["hello", "--name", "Marcel"])
def run_application_with_hello_parameter(context): context.output = hello.get_greeting(["hello"])
def test_get_named_greeting(self): self.assertEqual(hello.get_greeting(["hello", "--name", "Charlie"]), "hello Charlie")
def test_get_hello_greeting(self): self.assertEqual(hello.get_greeting(["hello"]), "hello world")
def test_get_empty_name_greeting(self): self.assertEqual(hello.get_greeting(["hello", "--name", ""]), "hello ")