From eff4620c56f38c32113cd452b18b8af8f8cd1bbd Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 17 Jan 2009 19:28:22 +0000 Subject: Update docs with new default project stuff. --- docs/narr/MyProject/myproject/tests.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/narr/MyProject/myproject/tests.py') diff --git a/docs/narr/MyProject/myproject/tests.py b/docs/narr/MyProject/myproject/tests.py index 64314616d..4e0b2f8f4 100644 --- a/docs/narr/MyProject/myproject/tests.py +++ b/docs/narr/MyProject/myproject/tests.py @@ -28,7 +28,7 @@ class ViewTests(unittest.TestCase): request = testing.DummyRequest() renderer = testing.registerDummyRenderer('templates/mytemplate.pt') response = my_view(context, request) - renderer.assert_(project='myproject') + renderer.assert_(project='MyProject') class ViewIntegrationTests(unittest.TestCase): """ These tests are integration tests for the view. These test @@ -51,7 +51,8 @@ class ViewIntegrationTests(unittest.TestCase): cleanUp() import myproject import zope.configuration.xmlconfig - zope.configuration.xmlconfig.file('configure.zcml', package=myproject) + zope.configuration.xmlconfig.file('configure.zcml', + package=myproject) def tearDown(self): """ Clear out the application registry """ @@ -64,7 +65,7 @@ class ViewIntegrationTests(unittest.TestCase): result = my_view(context, request) self.assertEqual(result.status, '200 OK') body = result.app_iter[0] - self.failUnless('Welcome to myproject' in body) + self.failUnless('Welcome to' in body) self.assertEqual(len(result.headerlist), 2) self.assertEqual(result.headerlist[0], ('content-type', 'text/html; charset=UTF-8')) -- cgit v1.2.3