def test_single_tl_sug_red_by_serving():
    
    tl_colour = tl.generate_single_tl(27.1, 22, 27, 5, 22.5)
    assert tl_colour == 'Red'
def test_single_tl_sat_amber():

    tl_colour = tl.generate_single_tl(6, 5, 6, 5, 1.5)
    assert tl_colour == 'Amber'
def test_single_tl_sat_green():

    tl_colour = tl.generate_single_tl(6, 1.5, 6, 5, 1.5)
    assert tl_colour == 'Green'
def test_single_tl_sat_red_by_serving():
    
    tl_colour = tl.generate_single_tl(6.1, 5, 6, 5, 1.5)
    assert tl_colour == 'Red'
def test_single_tl_sat_red():

    tl_colour = tl.generate_single_tl(6, 5.1, 6, 5, 1.5)
    assert tl_colour == 'Red'
def test_single_tl_fat_amber():

    tl_colour = tl.generate_single_tl(21, 17.5, 21, 17.5, 3.0)
    assert tl_colour == 'Amber'
def test_single_tl_fat_green():

    tl_colour = tl.generate_single_tl(21, 3.0, 21, 17.5, 3.0)
    assert tl_colour == 'Green'
def test_single_tl_fat_red_by_serving():
    
    tl_colour = tl.generate_single_tl(21.1, 3, 21, 17.5, 3.0)
    assert tl_colour == 'Red'
def test_single_tl_fat_red():

    tl_colour = tl.generate_single_tl(21, 17.6, 21, 17.5, 3.0)
    assert tl_colour == 'Red'
def test_single_tl_salt_amber():

    tl_colour = tl.generate_single_tl(1.8, 1.5, 1.8, 1.5, 0.3)
    assert tl_colour == 'Amber'
def test_single_tl_salt_green():

    tl_colour = tl.generate_single_tl(1.8, 0.3, 1.8, 1.5, 0.3)
    assert tl_colour == 'Green'
def test_single_tl_salt_red():

    tl_colour = tl.generate_single_tl(1.8, 1.51, 1.8, 1.5, 0.3)
    assert tl_colour == 'Red'
def test_single_tl_salt_red_by_serving():
    
    tl_colour = tl.generate_single_tl(1.81, 1.4, 1.8, 1.5, 0.3)
    assert tl_colour == 'Red'
def test_single_tl_sug_green():

    tl_colour = tl.generate_single_tl(25, 5, 27, 22.5, 5)
    assert tl_colour == 'Green'
def test_single_tl_sug_amber():

    tl_colour = tl.generate_single_tl(27, 5.1, 27, 22.5, 5)
    assert tl_colour == 'Amber'
def test_single_tl_sug_red():

    tl_colour = tl.generate_single_tl(27, 22.51, 27, 22.5, 5)
    assert tl_colour == 'Red'