示例#1
0
def test_cholesterol(n, expected):
    assert get_food_nutrients(n).cholesterol == expected
示例#2
0
def test_carbs(n, expected):
    assert get_food_nutrients(n).carbs == expected
示例#3
0
def test_name(n, expected):
    assert get_food_nutrients(n).name == expected
示例#4
0
def test_protein(n, expected):
    assert get_food_nutrients(n).protein == expected
示例#5
0
def test_instance(n, expected):
    assert isinstance(get_food_nutrients(n), Food) == expected