Exemplo n.º 1
0
 def test_0(self):
     with self.assertRaises(IndexError):
         aci2rgb(0)
Exemplo n.º 2
0
 def test_256(self):
     with self.assertRaises(IndexError):
         aci2rgb(256)
Exemplo n.º 3
0
 def test_from_aci(self):
     self.assertEqual((255, 0, 0), aci2rgb(1))
     self.assertEqual((255, 255, 255), aci2rgb(7))