def test_is_color(): assert is_color('dark blue') == 'dark blue' assert is_color('#123456') == '#123456' assert is_color('123') == '123' with pytest.raises(VdtValueError): assert is_color('red') == 'red'