예제 #1
0
 def test_repr(self):
     c = bcu.NamedColor("aliceblue", 240, 248, 255)
     assert repr(c) == c.to_css()
예제 #2
0
 def test_to_css(self):
     c = bcu.NamedColor("aliceblue", 240, 248, 255)
     assert c.to_css() == "aliceblue"
예제 #3
0
 def test_init(self):
     c = bcu.NamedColor("aliceblue", 240, 248, 255)
     assert c.name == "aliceblue"