Exemplo n.º 1
0
 def test_hello(self):
     assert greet("Maksud") == "Hello, Maksud."
Exemplo n.º 2
0
 def test_comma_seprate_names_split(self):
     assert greet(["Bob",
                   "Charlie, Dianne"]) == "Hello, Bob, Charlie, and Dianne."
Exemplo n.º 3
0
 def test_escape_character_input(self):
     assert greet(["Bob", "\"\"Charlie, Dianne\"\""
                   ]) == "Hello, Bob and Charlie, Dianne."
Exemplo n.º 4
0
 def test_mixing_shouting_with_normal_names(self):
     assert greet(["Amy", "BRIAN", "Charlotte"
                   ]) == "Hello, Amy and Charlotte. AND HELLO BRIAN!"
Exemplo n.º 5
0
 def test_concat_array_of_arbitrary_names(self):
     assert greet(["Maksud", "Zimi", "Robert", "Tanvir", "Musa"
                   ]) == "Hello, Maksud, Zimi, Robert, Tanvir, and Musa."
Exemplo n.º 6
0
 def test_concat_array_of_names(self):
     assert greet(["Maksud", "Zimi"]) == "Hello, Maksud and Zimi."
Exemplo n.º 7
0
 def test_shouting_when_name_uppercase(self):
     assert greet("MAKSUD") == "HELLO MAKSUD!"
Exemplo n.º 8
0
 def test_null(self):
     assert greet(None) == "Hello, my friend."