# HG changeset patch
# User Sverre Rabbelier <sverre@rabbelier.nl>
# Date 1247954684 25200
# Node ID d270bd8b7417f2ccdf6ce2aab0785cd5b384ca3f
# Parent  833785d10ecfce8aecf5002ef65d58c0952d4076
update Sidebar tests to use getCore

diff -r 833785d10ecf -r d270bd8b7417 tests/app/soc/views/sidebar/test_sidebar.py
--- 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))