コード例 #1
0
 def test_properName(self):
     self.assertEqual("Hello, Mitya!", greeting.greet("Mitya"))
コード例 #2
0
 def test_nullName(self):
     self.assertEqual("Hello, my friend!", greeting.greet(None))
コード例 #3
0
 def test_mixedShouting(self):
     self.assertEqual("Hello, Bia and Mitya! AND HELLO, PÍSZ!",
                      greeting.greet(["Bia", "Mitya", "PÍSZ"]))
コード例 #4
0
 def test_escapeComma(self):
     self.assertEqual("Hello, Bia and Mitya, Písz!",
                      greeting.greet(["Bia", "\"Mitya, Písz\""]))
コード例 #5
0
 def test_manyShouting(self):
     self.assertEqual("HELLO, BIA, MITYA, AND PÍSZ!",
                      greeting.greet(["BIA", "MITYA", "PÍSZ"]))
コード例 #6
0
 def test_manyNames(self):
     self.assertEqual("Hello, Bia, Mitya, and Písz!",
                      greeting.greet(["Bia", "Mitya", "Písz"]))
コード例 #7
0
 def test_twoShouting(self):
     self.assertEqual("HELLO, BIA AND MITYA!",
                      greeting.greet(["BIA", "MITYA"]))
コード例 #8
0
 def test_twoNames(self):
     self.assertEqual("Hello, Bia and Mitya!",
                      greeting.greet(["Bia", "Mitya"]))
コード例 #9
0
 def test_shouting(self):
     self.assertEqual("HELLO, MITYA!", greeting.greet("MITYA"))