diff tests/test_db.py @ 51:2733871775cd

More unit tests.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 31 Jan 2013 12:28:10 -0800
parents fb6ae96756c1
children ebb12ff21cb2
line wrap: on
line diff
--- a/tests/test_db.py	Thu Jan 31 12:27:35 2013 -0800
+++ b/tests/test_db.py	Thu Jan 31 12:28:10 2013 -0800
@@ -31,7 +31,12 @@
             db_factory=self._dbFactory,
             fs_factory=self._fsFactory
             )
+
+        # Open the DB before we do anything so that it will be closed
+        # only on `tearDown` (memory DBs are discarded when the
+        # connection is closed.
         wiki.db.open()
+
         wiki.start()
         return wiki