def test_hex_is_dark(): """Test ability to recover correct colour for text. """ assert not hex_is_dark('#FFFF00') assert hex_is_dark('#330000') assert text_colour_for_hex('#FFFF00') == '#000000' assert text_colour_for_hex('#121111') == '#FFFFFF'
def test_hex_is_dark(): assert not hex_is_dark('#FFFF00') assert hex_is_dark('#330000') assert text_colour_for_hex('#FFFF00') == '#000000' assert text_colour_for_hex('#121111') == '#FFFFFF'
def test_hex_is_dark(): assert not hex_is_dark("#FFFF00") assert hex_is_dark("#330000") assert text_colour_for_hex("#FFFF00") == "#000000" assert text_colour_for_hex("#121111") == "#FFFFFF"