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