def test_cubehelix_pal(): palette = cubehelix_pal() values = palette(5) assert len(values) == 5 assert all(s[0] == '#' and len(s) == 7 for s in values)