[test] Drop useless calls to entity_from_eid
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 25 Aug 2016 16:47:23 +0200
changeset 1553 f9f6974d3f6b
parent 1552 05bfdace8af8
child 1554 dce90c3bd6f4
[test] Drop useless calls to entity_from_eid
test/test_hooks.py
--- a/test/test_hooks.py	Thu Aug 25 16:46:50 2016 +0200
+++ b/test/test_hooks.py	Thu Aug 25 16:47:23 2016 +0200
@@ -69,7 +69,6 @@
             transfer = cnx.create_entity('SEDAArchiveTransfer', title=u'test profile')
             au, alt, seq = create_archive_unit(transfer)
             cnx.commit()
-            au = cnx.entity_from_eid(au.eid)
             # Check that a SEDAContent and its title have been created
             self.assertTrue(au.first_level_choice.content_sequence.reverse_seda_content)
             content = au.first_level_choice.content_sequence.reverse_seda_content[0]
@@ -85,7 +84,6 @@
             content = cnx.create_entity('SEDAContent', seda_content=seq)
             cnx.create_entity('SEDATitle', seda_title=content)
             cnx.commit()
-            au = cnx.entity_from_eid(au.eid)
             # Check that no new SEDAContent has been created
             self.assertEqual(len(au.first_level_choice.content_sequence.reverse_seda_content), 1)
             related_content = au.first_level_choice.content_sequence.reverse_seda_content[0]