def test_parses_ingredient_before_quantity(ingredient_line, expected_result): actual = ingredients.parse_ingredient_line(ingredient_line) expected = make_ingredient(expected_result) assert_ingredient_equal(expected, actual)
def test_parses_ingredient_line_with_unit_size(ingredient_line, expected_result): actual = ingredients.parse_ingredient_line(ingredient_line) expected = make_ingredient(expected_result) assert_ingredient_equal(expected, actual)
def test_parses_ingredient_line_where_ingredient_has_multiple_amount_values(ingredient_line, expected_result): actual = ingredients.parse_ingredient_line(ingredient_line) expected = make_ingredient(expected_result) assert_ingredient_equal(expected, actual)
def test_parses_ingredient_line_where_quantity_amount_is_words(ingredient_line, expected_result): actual = ingredients.parse_ingredient_line(ingredient_line) expected = make_ingredient(expected_result) assert_ingredient_equal(expected, actual)
def test_parses_amount_range(ingredient_line, expected_result): actual = ingredients.parse_ingredient_line(ingredient_line) expected = make_ingredient(expected_result) assert_ingredient_equal(expected, actual)