def test_parse_limit_given_invalid_args(self, args):
     parser = FoodParser(Food)
     with pytest.raises(InvalidLimit):
         parser.parse_limit(args)
 def test_parse_limit_given_valid_args(self, args, expected):
     parser = FoodParser(Food)
     parser.parse_limit(args)
     assert parser.limit_clause == expected