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