Exemple #1
0
    def test_list_int(self):
        """
        Test that it can take empty strings
        """

        result = full_name("", "")
        self.assertEqual(result, "")
Exemple #2
0
 def test_correct_input1(self):
     self.assertEqual(name.full_name(f, l),f + " " + l)
Exemple #3
0
 def test_blank_firstName(self):
         self.assertEqual(name.full_name("", "Smith"), " Smith")
Exemple #4
0
 def test_normal_name(self):
         self.assertEqual(name.full_name("Emily", "Lee"), "Emily Lee")
Exemple #5
0
 def test3(self):
     self.assertEqual(name.full_name("Luke","Skywalker"), "Luke Skywalker")
Exemple #6
0
 def test2(self):
     self.assertEqual(name.full_name("Fail1","Fail2"), "Invalid name")
Exemple #7
0
 def test1(self):
     self.assertEqual(name.full_name("Bob","Smith"), "Bob Smith")
Exemple #8
0
 def test_list_int(self):
     """
     Test that it can take numbers
     """
     result = full_name(1, 2)
     self.assertEqual(result, "12")
Exemple #9
0
 def test_list_int(self):
     """
     Test that it can handle booleans
     """
     result = full_name(True, False)
     self.assertEqual(result, "TrueFalse")