[test] Drop useless comments and fix a docstring
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 11 Jan 2017 09:41:15 +0100
changeset 2260 88b2dff556c3
parent 2259 c53a0d875814
child 2261 6a2991d3a896
[test] Drop useless comments and fix a docstring
test/test_hooks.py
--- a/test/test_hooks.py	Tue Jan 10 16:06:17 2017 +0100
+++ b/test/test_hooks.py	Wed Jan 11 09:41:15 2017 +0100
@@ -66,7 +66,6 @@
     def test_content_created(self):
         """Check that a SEDAContent entity is created when an empty ArchiveUnit is created."""
         with self.admin_access.client_cnx() as cnx:
-            # Create an empty SEDAArchiveUnit
             transfer = cnx.create_entity('SEDAArchiveTransfer', title=u'test profile')
             au, alt, seq = create_archive_unit(transfer)
             cnx.commit()
@@ -79,7 +78,6 @@
         """Check that a SEDAContent entity is not created when an ArchiveUnit with one is created.
         """
         with self.admin_access.client_cnx() as cnx:
-            # Create an SEDAArchiveUnit with a SEDAContent
             transfer = cnx.create_entity('SEDAArchiveTransfer', title=u'test profile')
             au, alt, seq = create_archive_unit(transfer)
             content = cnx.create_entity('SEDAContent', seda_content=seq)
@@ -91,10 +89,9 @@
             self.assertEqual(related_content.eid, content.eid)
 
     def test_archive_unit_deletion(self):
-        """Check that hook does nothing entity is not created when an ArchiveUnit with one is created.
+        """Check that hook does nothing when an ArchiveUnit is deleted.
         """
         with self.admin_access.client_cnx() as cnx:
-            # Create an SEDAArchiveUnit with a SEDAContent
             transfer = cnx.create_entity('SEDAArchiveTransfer', title=u'test profile')
             au, alt, seq = create_archive_unit(transfer)
             content = cnx.create_entity('SEDAContent', seda_content=seq)