diff options
| author | Steve Piercy <web@stevepiercy.com> | 2015-12-14 02:26:32 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2015-12-14 02:26:32 -0800 |
| commit | 312aa1b996f786dc18d8189a7a6d9813ad609645 (patch) | |
| tree | 1519fb111d4efaf883d5926b94442361d61d9d78 /docs/narr/MyProject | |
| parent | 6f34bf84917f72f464222dfa518d40300f67a365 (diff) | |
| download | pyramid-312aa1b996f786dc18d8189a7a6d9813ad609645.tar.gz pyramid-312aa1b996f786dc18d8189a7a6d9813ad609645.tar.bz2 pyramid-312aa1b996f786dc18d8189a7a6d9813ad609645.zip | |
- Remove broken integration test example from testing and source file, per #2172
- Update functional test with explicit instructions and to sync with actual starter scaffold
Diffstat (limited to 'docs/narr/MyProject')
| -rw-r--r-- | docs/narr/MyProject/myproject/tests.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/docs/narr/MyProject/myproject/tests.py b/docs/narr/MyProject/myproject/tests.py index 63d00910c..37df08a2a 100644 --- a/docs/narr/MyProject/myproject/tests.py +++ b/docs/narr/MyProject/myproject/tests.py @@ -17,32 +17,6 @@ class ViewTests(unittest.TestCase): 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): from myproject import main |
