Chris McDonough
2012-01-05 980f0a3be6180e67612638dbc630a2d164a436bf
coverage
1 files modified
6 ■■■■■ changed files
pyramid/tests/test_urldispatch.py 6 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_urldispatch.py
@@ -113,6 +113,12 @@
        self.assertEqual(mapper.routelist[0].pattern,
                         'archives/:action/:article2')
    def test___call__pathinfo_cant_be_decoded(self):
        from pyramid.exceptions import URLDecodeError
        mapper = self._makeOne()
        request = self._getRequest(PATH_INFO='\xff\xfe\xe6\x00')
        self.assertRaises(URLDecodeError, mapper, request)
    def test___call__route_matches(self):
        mapper = self._makeOne()
        mapper.connect('foo', 'archives/:action/:article')