Unit test: Fix _equal_stat_dicts() invocation
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 3 Jul 2015 15:24:14 +0000 (17:24 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 3 Jul 2015 15:24:14 +0000 (17:24 +0200)
The jsonize_path_iterator() generator returns a tuple
with the wanted dictionary as the first element.

testing/test_deltatar.py

index 20c6397..3a46ccc 100644 (file)
@@ -1337,10 +1337,10 @@ class DeltaTarTest(BaseTest):
                 except StopIteration:
                     break
             try:
-                assert deltatar._equal_stat_dicts(sitem, titem)
+                assert deltatar._equal_stat_dicts(sitem[0], titem[0])
             except Exception as e:
-                print(sitem)
-                print(titem)
+                print("SITEM: " + str(sitem))
+                print("TITEM: " + str(titem))
                 raise e
 
 class DeltaTar2Test(DeltaTarTest):