def test_rgb_parser_should_pass(self): hsv.parse_colorstring("#ABC") hsv.parse_colorstring("#FAA") hsv.parse_colorstring("#FAFAFA")
def test_rgb_parser_should_pass(self): for color_test in [self.colortest1, self.colortest2, self.colortest3]: result = hsv.parse_colorstring(color_test) result_string = '#' + ''.join(['%X' % i for i in result]) self.assertEqual(result_string, color_test)