コード例 #1
0
 def test_color_lowercase(self):
     color = "#abcdef"
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
コード例 #2
0
 def test_color_high(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)
コード例 #4
0
ファイル: test_styles.py プロジェクト: Agicia/lpod-python
 def test_color_lowercase(self):
     color = '#abcdef'
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
コード例 #5
0
ファイル: test_styles.py プロジェクト: Agicia/lpod-python
 def test_color_high(self):
     color = '#ABCDEF'
     expected = (171, 205, 239)
     self.assertEqual(hex2rgb(color), expected)
コード例 #6
0
ファイル: test_styles.py プロジェクト: Agicia/lpod-python
 def test_color_low(self):
     color = '#012345'
     expected = (1, 35, 69)
     self.assertEqual(hex2rgb(color), expected)