예제 #1
0
 def test_multichannel_swap(self):
     color = Color()
     assert color.ba == [0, 255]
     color.ba = color.ab
     assert color.ba == [255, 0]
예제 #2
0
 def test_multichannel_assignment(self):
     color = Color()
     assert color.ra == [0, 255]
     color.ra = [1, 254]
     assert color.ra == [1, 254]