def test_names(): """Test colour names. """ assert name_to_hex('red') == '#FF0000' assert name_to_hex('Red') == '#FF0000' assert hex_to_name('#FF0000') == 'red' assert hex_to_name('#ff0000') == 'red' assert hex_to_name('cerulean') is None
def test_names(): assert name_to_hex('red') == '#FF0000' assert name_to_hex('Red') == '#FF0000' assert hex_to_name('#FF0000') == 'red' assert hex_to_name('#ff0000') == 'red' assert hex_to_name('cerulean') is None
def test_names(): assert name_to_hex('red') == '#FF0000' assert name_to_hex('Red') == '#FF0000' # case assert hex_to_name('#FF0000') == 'red' assert hex_to_name('#ff0000') == 'red' # case
def test_names(): assert name_to_hex("red") == "#FF0000" assert name_to_hex("Red") == "#FF0000" assert hex_to_name("#FF0000") == "red" assert hex_to_name("#ff0000") == "red" assert hex_to_name("cerulean") is None