[dataimport/test] fix test failures since 35b29f1eb37a
The index name changed, so we need to follow suit.
--- a/cubicweb/dataimport/test/test_massive_store.py Wed Feb 03 11:12:58 2016 +0100
+++ b/cubicweb/dataimport/test/test_massive_store.py Fri Feb 05 16:32:20 2016 +0100
@@ -112,7 +112,7 @@
crs = cnx.system_sql('SELECT indexname FROM pg_indexes')
indexes = [r[0] for r in crs.fetchall()]
self.assertNotIn('entities_pkey', indexes)
- self.assertNotIn('unique_entities_extid_idx', indexes)
+ self.assertNotIn('entities_extid_idx', indexes)
self.assertNotIn('owned_by_relation_pkey', indexes)
self.assertNotIn('owned_by_relation_to_idx', indexes)
@@ -125,7 +125,7 @@
crs = cnx.system_sql('SELECT indexname FROM pg_indexes')
indexes = [r[0] for r in crs.fetchall()]
self.assertIn('entities_pkey', indexes)
- self.assertIn('unique_entities_extid_idx', indexes)
+ self.assertIn('entities_extid_idx', indexes)
self.assertIn('owned_by_relation_p_key', indexes)
self.assertIn('owned_by_relation_to_idx', indexes)
@@ -208,7 +208,7 @@
crs = cnx.system_sql('SELECT indexname FROM pg_indexes')
indexes = [r[0] for r in crs.fetchall()]
self.assertIn('entities_pkey', indexes)
- self.assertIn('unique_entities_extid_idx', indexes)
+ self.assertIn('entities_extid_idx', indexes)
self.assertIn('owned_by_relation_p_key', indexes)
self.assertIn('owned_by_relation_to_idx', indexes)
@@ -242,7 +242,7 @@
crs = cnx.system_sql('SELECT indexname FROM pg_indexes')
indexes = [r[0] for r in crs.fetchall()]
self.assertNotIn('entities_pkey', indexes)
- self.assertNotIn('unique_entities_extid_idx', indexes)
+ self.assertNotIn('entities_extid_idx', indexes)
self.assertNotIn('owned_by_relation_p_key', indexes)
self.assertNotIn('owned_by_relation_to_idx', indexes)
@@ -253,7 +253,7 @@
crs = cnx.system_sql('SELECT indexname FROM pg_indexes')
indexes = [r[0] for r in crs.fetchall()]
self.assertIn('entities_pkey', indexes)
- self.assertIn('unique_entities_extid_idx', indexes)
+ self.assertIn('entities_extid_idx', indexes)
self.assertIn('owned_by_relation_p_key', indexes)
self.assertIn('owned_by_relation_to_idx', indexes)