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