Ensures the dict size doesn’t change with Python3.
Don’t compare BasketDiscount and integers
Sort the test results.
Make sure the .items is a list