diff tests/test_push_command.py @ 907:173065f9b715

push test: peek inside svn's pending transaction list on abort This helps us verify that aborting a transaction is being done properly.
author Augie Fackler <raf@durin42.com>
date Thu, 17 May 2012 08:24:54 -0500
parents a279b5838aaf
children d99ed94f4760
line wrap: on
line diff
--- a/tests/test_push_command.py
+++ b/tests/test_push_command.py
@@ -134,7 +134,7 @@ class PushTests(test_util.TestBase):
         finally:
             if sys.version_info >= (2,6):
                 svnserve.kill()
-            else: 
+            else:
                 test_util.kill_process(svnserve)
 
     def test_push_over_svnserve(self):
@@ -487,7 +487,9 @@ class PushTests(test_util.TestBase):
                              'Outgoing changesets parent is not at subversion '
                              'HEAD\n'
                              '(pull again and rebase on a newer revision)')
-
+            # verify that any pending transactions on the server got cleaned up
+            self.assertEqual([], os.listdir(
+                os.path.join(self.tmpdir, 'testrepo-1', 'db', 'transactions')))
 
 def suite():
     test_classes = [PushTests, ]