summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-01-15 16:50:35 +0200
committerLars Wirzenius <liw@liw.fi>2016-01-15 17:16:28 +0200
commit8910065872e74c6cdcb15d784fad3abfe4a8edb8 (patch)
tree9e3bd0670f293af2d5addb15ef71b0aa45d8a1a5
parent5da7214b4368422fdd2c63a6c94869a9fced6f9e (diff)
downloadobnam-8910065872e74c6cdcb15d784fad3abfe4a8edb8.tar.gz
Simplify comparison of bags in unit test
-rw-r--r--obnamlib/bag_store_tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/obnamlib/bag_store_tests.py b/obnamlib/bag_store_tests.py
index ef06fe87..704bce0a 100644
--- a/obnamlib/bag_store_tests.py
+++ b/obnamlib/bag_store_tests.py
@@ -39,9 +39,7 @@ class BagStoreTests(unittest.TestCase):
def assertEqualBags(self, a, b):
self.assertEqual(a.get_id(), b.get_id())
- self.assertEqual(len(a), len(b))
- for i in range(len(a)):
- self.assertEqual(a[i], b[i])
+ self.assertEqual(list(a), list(b))
def test_stores_and_retrieves_an_empty_bag(self):
self.store.put_bag(self.bag)