--- a/tests/app/soc/views/sidebar/test_sidebar.py Sat Jul 18 14:58:12 2009 -0700
+++ b/tests/app/soc/views/sidebar/test_sidebar.py Sat Jul 18 15:04:44 2009 -0700
@@ -25,23 +25,15 @@
from google.appengine.api import users
from google.appengine.api import memcache
-from soc.views.sitemap import sidebar
+from soc.modules import callback
class SidebarTest(unittest.TestCase):
def setUp(self):
pass
- def testSidebarCallbacksAreAdded(self):
- """Test that the sidebar callbacks are added when importing 'build'.
- """
-
- self.assertEqual([], sidebar.SIDEBAR)
- from soc.views.sitemap import build
- self.assertNotEqual([], sidebar.SIDEBAR)
-
def testSidebarBuilds(self):
"""Test that the sidebar builds and does not return None.
"""
- self.assertNotEqual(None, sidebar.getSidebar('id', None))
+ self.assertNotEqual(None, callback.getCore().getSidebar('id', None))