Beispiel #1
0
def run_application_without_parameters(context):
    context.output = hello.get_greeting("")
Beispiel #2
0
def run_application_with_name(context):
    context.output = hello.get_greeting(["hello", "--name", "Marcel"])
Beispiel #3
0
def run_application_with_hello_parameter(context):
    context.output = hello.get_greeting(["hello"])
Beispiel #4
0
 def test_get_named_greeting(self):
     self.assertEqual(hello.get_greeting(["hello", "--name", "Charlie"]),
                      "hello Charlie")
Beispiel #5
0
 def test_get_hello_greeting(self):
     self.assertEqual(hello.get_greeting(["hello"]), "hello world")
Beispiel #6
0
 def test_get_empty_name_greeting(self):
     self.assertEqual(hello.get_greeting(["hello", "--name", ""]), "hello ")