diff options
| author | Chris McDonough <chrism@plope.com> | 2016-02-07 16:34:46 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2016-02-07 16:34:46 -0500 |
| commit | df7a123a847e2243f38688c033f06200382ba139 (patch) | |
| tree | cc8e032c2a85d9fee45e68f7f3501046c8bec8ed /docs/narr/MyProject/myproject/tests.py | |
| parent | 5cd91621668807f9b66811fe57a04fba96e7458a (diff) | |
| parent | ed04017d5a8e82db2e46412f841c55d83ef062b0 (diff) | |
| download | pyramid-df7a123a847e2243f38688c033f06200382ba139.tar.gz pyramid-df7a123a847e2243f38688c033f06200382ba139.tar.bz2 pyramid-df7a123a847e2243f38688c033f06200382ba139.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/MyProject/myproject/tests.py')
| -rw-r--r-- | docs/narr/MyProject/myproject/tests.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/docs/narr/MyProject/myproject/tests.py b/docs/narr/MyProject/myproject/tests.py index 8c60407e5..37df08a2a 100644 --- a/docs/narr/MyProject/myproject/tests.py +++ b/docs/narr/MyProject/myproject/tests.py @@ -16,31 +16,6 @@ class ViewTests(unittest.TestCase): info = my_view(request) self.assertEqual(info['project'], 'MyProject') -class ViewIntegrationTests(unittest.TestCase): - def setUp(self): - """ This sets up the application registry with the - registrations your application declares in its ``includeme`` - function. - """ - self.config = testing.setUp() - self.config.include('myproject') - - def tearDown(self): - """ Clear out the application registry """ - testing.tearDown() - - def test_my_view(self): - from myproject.views import my_view - request = testing.DummyRequest() - result = my_view(request) - self.assertEqual(result.status, '200 OK') - body = result.app_iter[0] - self.assertTrue('Welcome to' in body) - self.assertEqual(len(result.headerlist), 2) - self.assertEqual(result.headerlist[0], - ('Content-Type', 'text/html; charset=UTF-8')) - self.assertEqual(result.headerlist[1], ('Content-Length', - str(len(body)))) class FunctionalTests(unittest.TestCase): def setUp(self): |
