Ejemplo n.º 1
0
    def test_abstract(self):
        c = bcc.Color()

        with pytest.raises(NotImplementedError):
            c.copy()

        with pytest.raises(NotImplementedError):
            c.from_hsl("foo")
        with pytest.raises(NotImplementedError):
            c.from_rgb("foo")

        with pytest.raises(NotImplementedError):
            c.to_css()
        with pytest.raises(NotImplementedError):
            c.to_hsl()
        with pytest.raises(NotImplementedError):
            c.to_rgb()
Ejemplo n.º 2
0
 def test_repr(self):
     c = bcc.Color()
     with pytest.raises(NotImplementedError):
         repr(c)
Ejemplo n.º 3
0
 def test_init(self):
     c = bcc.Color()
     assert c
Ejemplo n.º 4
0
 def test_init(self) -> None:
     c = bcc.Color()
     assert c