Ejemplo n.º 1
0
 def test_256(self):
     with self.assertRaises(IndexError):
         aci2rgb(256)
Ejemplo n.º 2
0
 def test_0(self):
     with self.assertRaises(IndexError):
         aci2rgb(0)
Ejemplo n.º 3
0
 def test_from_aci(self):
     self.assertEqual((255, 0, 0), aci2rgb(1))
     self.assertEqual((255, 255, 255), aci2rgb(7))
Ejemplo n.º 4
0
def test_256():
    with pytest.raises(IndexError):
        aci2rgb(256)
Ejemplo n.º 5
0
def test_0():
    with pytest.raises(IndexError):
        aci2rgb(0)
Ejemplo n.º 6
0
def test_from_aci():
    assert (255, 0, 0) == aci2rgb(1)
    assert (255, 255, 255) == aci2rgb(7)