Пример #1
0
 def test2(self):
     self.assertEqual(fullName.fullName(
         "Toni", "Collette"), "Toni Collette")
Пример #2
0
 def test3(self):
     self.assertEqual(fullName.fullName("Agent", "47"), "Agent 47")
Пример #3
0
 def test1(self):
     self.assertEqual(fullName.fullName("Chris", "Evans"), "Chris Evans")
Пример #4
0
 def test_noInput(self):
     #Passing Test
     self.assertEqual(fullName.fullName("", ""), " ")
Пример #5
0
 def test_apostropheNames(self):
     #Passing Test
     self.assertEqual(fullName.fullName("D'Amato", "Lexington"),
                      "D'Amato Lexington")
Пример #6
0
 def test_randomStrings(self):
     #Passing Test
     self.assertEqual(fullName.fullName("123,&Hane", "Po'9zna\]"),
                      "123,&Hane Po'9zna\]")
Пример #7
0
 def test_Name(self):
     self.assertEqual(fullName.fullName("Akshat", "Lunia"), "Akshat Lunia")
     self.assertEqual(fullName.fullName(1, 2), "not a string input")
     self.assertEqual(fullName.fullName("1", "2"), "1 2")
Пример #8
0
 def test_regular(self):
     self.assertEqual(fullName.fullName('Jane', 'Doe'), 'Jane Doe')
     self.assertEqual(fullName.fullName('Jackie', 'Chan'), 'Jackie Chan')
Пример #9
0
 def test_empty(self):
     self.assertEqual(fullName.fullName('', ''), ' ')
Пример #10
0
 def test_numbers(self):
     self.assertEqual(fullName.fullName('9', '9'), '9 9')
     self.assertEqual(fullName.fullName('Jarven', '4'), 'Jarven 4')