Пример #1
0
 def test_color_high(self):
     color = '#ABCDEF'
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
Пример #2
0
 def test_color_lowercase(self):
     color = '#abcdef'
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
Пример #3
0
 def test_color_low(self):
     color = '#012345'
     expected = (1, 35, 69)
     self.assertEqual(hex2rgb(color), expected)