def test_list_int(self): """ Test that it can take empty strings """ result = full_name("", "") self.assertEqual(result, "")
def test_correct_input1(self): self.assertEqual(name.full_name(f, l),f + " " + l)
def test_blank_firstName(self): self.assertEqual(name.full_name("", "Smith"), " Smith")
def test_normal_name(self): self.assertEqual(name.full_name("Emily", "Lee"), "Emily Lee")
def test3(self): self.assertEqual(name.full_name("Luke","Skywalker"), "Luke Skywalker")
def test2(self): self.assertEqual(name.full_name("Fail1","Fail2"), "Invalid name")
def test1(self): self.assertEqual(name.full_name("Bob","Smith"), "Bob Smith")
def test_list_int(self): """ Test that it can take numbers """ result = full_name(1, 2) self.assertEqual(result, "12")
def test_list_int(self): """ Test that it can handle booleans """ result = full_name(True, False) self.assertEqual(result, "TrueFalse")