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