Compare full lists instead of looping over items as suggested by @hackebrot

This commit is contained in:
Bruno Oliveira 2015-04-08 00:39:34 -03:00
parent 8702ac8a98
commit 26dc275db3

View File

@ -81,8 +81,8 @@ class TestSerializeHistory:
def test_userdata(self): def test_userdata(self):
"""Check if all user data has been restored to self.user_data.""" """Check if all user data has been restored to self.user_data."""
for item, user_data in zip(self.ITEMS, self.user_data): userdata_items = [item.user_data for item in self.ITEMS]
assert user_data == item.user_data assert userdata_items == self.user_data
def test_currentitem(self): def test_currentitem(self):
"""Check if the current item index was loaded correctly.""" """Check if the current item index was loaded correctly."""