def test_validate_color2(self): try: validate_color(55555) except TypeError: pass else: self.fail("Expected TypeError")
def test_validate_color1(self): self.assertEqual(validate_color("not a 5olor"), None)
def test_validate_color0(self): self.assertEqual(validate_color("not a color"), "not a color")