Add test for Color.parse method to validate tuple input for RGB values
This commit is contained in:
parent
e7773373f4
commit
c0066525db
@ -8,6 +8,7 @@ def test_color_parse():
|
|||||||
c = Color(0xABCDEF)
|
c = Color(0xABCDEF)
|
||||||
assert Color.parse(c) is c
|
assert Color.parse(c) is c
|
||||||
assert Color.parse(None) is None
|
assert Color.parse(None) is None
|
||||||
|
assert Color.parse((255, 0, 0)).value == 0xFF0000
|
||||||
|
|
||||||
|
|
||||||
def test_embed_color_parsing():
|
def test_embed_color_parsing():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user