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

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