def test_color_lowercase(self):
     color = "#abcdef"
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
 def test_color_high(self):
     color = "#ABCDEF"
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
 def test_color_low(self):
     color = "#012345"
     expected = (1, 35, 69)
     self.assertEqual(hex2rgb(color), expected)
示例#4
0
 def test_color_lowercase(self):
     color = '#abcdef'
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
示例#5
0
 def test_color_high(self):
     color = '#ABCDEF'
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
示例#6
0
 def test_color_low(self):
     color = '#012345'
     expected = (1, 35, 69)
     self.assertEqual(hex2rgb(color), expected)