Manually call start and end in test_sidebar
authorSverre Rabbelier <srabbelier@gmail.com>
Mon, 14 Sep 2009 18:44:46 +0200
changeset 2916 a7b7e67c0667
parent 2915 76b5ef0fb5c6
child 2917 b9f600436e89
Manually call start and end in test_sidebar Since we are not using a request directly we need to manually do the set-up and tear-down required.
tests/app/soc/views/sidebar/test_sidebar.py
--- a/tests/app/soc/views/sidebar/test_sidebar.py	Mon Sep 14 18:43:15 2009 +0200
+++ b/tests/app/soc/views/sidebar/test_sidebar.py	Mon Sep 14 18:44:46 2009 +0200
@@ -36,4 +36,6 @@
     """Test that the sidebar builds and does not return None.
     """
 
+    callback.getCore().startNewRequest(None)
     self.assertNotEqual(None, callback.getCore().getSidebar('id', None))
+    callback.getCore().endRequest(None, False)