Chris McDonough
2012-11-21 d91dc7bd96bdc8638c52e4b0685612237cf13578
add an integration test for the eventonly behavior
1 files modified
12 ■■■■■ changed files
pyramid/tests/test_integration.py 12 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_integration.py
@@ -174,6 +174,18 @@
    def test_oob_slash(self):
        self.testapp.get('/%2F/test_integration.py', status=404)
class TestEventOnlySubscribers(IntegrationBase, unittest.TestCase):
    package = 'pyramid.tests.pkgs.eventonly'
    def test_sendfoo(self):
        res = self.testapp.get('/sendfoo', status=200)
        self.assertEqual(sorted(res.body.split()), ['foo', 'fooyup'])
    def test_sendfoobar(self):
        res = self.testapp.get('/sendfoobar', status=200)
        self.assertEqual(sorted(res.body.split()),
                         ['foobar', 'foobar2', 'foobaryup', 'foobaryup2'])
class TestStaticAppUsingAbsPath(TestStaticAppBase, unittest.TestCase):
    package = 'pyramid.tests.pkgs.static_abspath'