コード例 #1
0
ファイル: color_tests.py プロジェクト: numberoverzero/gritty
 def test_multichannel_swap(self):
     color = Color()
     assert color.ba == [0, 255]
     color.ba = color.ab
     assert color.ba == [255, 0]
コード例 #2
0
ファイル: color_tests.py プロジェクト: numberoverzero/gritty
 def test_multichannel_assignment(self):
     color = Color()
     assert color.ra == [0, 255]
     color.ra = [1, 254]
     assert color.ra == [1, 254]