def test_args(self): result = colorvalid("red bold") self.assertTrue(result) result = colorvalid("red, bold") self.assertTrue(result) result = colorvalid(["red", "bold"]) self.assertTrue(result) result = colorvalid("infrared bold") self.assertFalse(result) result = colorvalid("infrared, bold") self.assertFalse(result) result = colorvalid(["infrared", "bold"]) self.assertFalse(result)
def test_arg(self): result = colorvalid("red") self.assertTrue(result) result = colorvalid("infrared") self.assertFalse(result)