Lines Matching refs:disp
240 disp = dispatch.Dispatcher(_TEST_HANDLERS_DIR, None)
241 self.assertEqual(4, len(disp._handler_suite_map))
242 self.failUnless('/origin_check' in disp._handler_suite_map)
244 '/sub/exception_in_transfer' in disp._handler_suite_map)
245 self.failUnless('/sub/plain' in disp._handler_suite_map)
248 disp = dispatch.Dispatcher(_TEST_HANDLERS_DIR, _TEST_HANDLERS_SUB_DIR)
249 self.assertEqual(2, len(disp._handler_suite_map))
250 self.failIf('/origin_check' in disp._handler_suite_map)
252 '/sub/exception_in_transfer' in disp._handler_suite_map)
253 self.failUnless('/sub/plain' in disp._handler_suite_map)
256 disp = dispatch.Dispatcher(_TEST_HANDLERS_SUB_DIR,
258 self.assertEqual(2, len(disp._handler_suite_map))
259 self.failIf('/origin_check' in disp._handler_suite_map)
260 self.failIf('/sub/exception_in_transfer' in disp._handler_suite_map)
261 self.failIf('/sub/plain' in disp._handler_suite_map)
262 self.failUnless('/exception_in_transfer' in disp._handler_suite_map)
263 self.failUnless('/plain' in disp._handler_suite_map)
272 disp = dispatch.Dispatcher(_TEST_HANDLERS_DIR, None)
273 disp.add_resource_path_alias('/', '/origin_check')
274 self.assertEqual(5, len(disp._handler_suite_map))
275 self.failUnless('/origin_check' in disp._handler_suite_map)
277 '/sub/exception_in_transfer' in disp._handler_suite_map)
278 self.failUnless('/sub/plain' in disp._handler_suite_map)
279 self.failUnless('/' in disp._handler_suite_map)
281 disp.add_resource_path_alias, '/alias', '/not-exist')