def test_parse_name_given_invalid_args(self, args):
     parser = FoodParser(Food)
     with pytest.raises(InvalidName):
         parser.parse_name(args)
 def test_parse_name_given_valid_args(self, args, expected):
     parser = FoodParser(Food)
     parser.parse_name(args)
     assert compare_nested_exprs(parser.where_clause, expected)
     assert parser.name == expected.rhs