Ñò ˆ_‚Jc@sEddkZddklZlZddklZddklZddkZd„Z e ƒZ d„Z d„Z d„Z d „Zd „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#dS(iÿÿÿÿN(t TestConfigtapp_from_config(tTestApp(teq_cCs3tdddhtd6ddgd6ƒ}t|ƒS(Ntfoldertdispatchtvaluestuse_sqlalchemytignoret ignore_metignore_parameters(RtFalseR(t base_config((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt setup_noDBs  cCs*tidƒ}d|ijpt‚dS(Ns /sdfaswdfsdfatDefault(tapptgettbodytAssertionError(tresp((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_tg_style_defaultscCs*tidƒ}d|ijpt‚dS(Ns8/feed?feed=http%3A%2F%2Fdeanlandolt.com%2Ffeed%2Fatom%2Fs!http://deanlandolt.com/feed/atom/(RRRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_url_encoded_param_passingscCs0tidƒ}d|ijp t|i‚dS(Ns/index/thello(RRRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_tg_style_indexscCs0tidƒ}d|ijp t|i‚dS(Ns /sub/indexs sub index(RRRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt!test_tg_style_subcontroller_indexscCsjtidƒ}d|ijp t|i‚d|ijp t|i‚d|ijp t|i‚dS(Ns/sub/bob/tim/joetbobttimtjoe(RRRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt#test_tg_style_subcontroller_default#scCsttidƒ}|idjp t|i‚d|idjp t|i‚|iƒ}d|jp t|‚dS(Ns/redirect_me?target=/s 302 Foundshttp://localhost/tlocations hello world(RRtstatusRtheadersRtfollow(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_redirect_absolute)s ! cCsštidƒ}|iƒ}d|jp t|‚tidƒ}|iƒ}d|jp t|‚tidƒ}|iƒ}d|jp t|‚dS(Ns"/redirect_me?target=hello&name=abcs Hello abcs&/sub/redirect_me?target=hello&name=defsWhy HELLO! defs)/sub/redirect_me?target=../hello&name=ghis Hello ghi(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_redirect_relative0s   cCsGtidƒ}|idjot|iƒddjp t|‚dS(Ns&/redirect_me?target=http://example.coms 302 FoundRshttp://example.com(RRRtdictRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_redirect_external>scCs¥tidƒ}|GH|iƒ}d|jpt‚tidƒ}|GH|iƒ}d|jpt‚tidƒ}|GH|iƒ}|GHd|jpt‚dS(Ns#/redirect_me?target=/hello&name=pajs Hello pajs#/redirect_me?target=/hello&name=pbjs Hello pbjs//redirect_me?target=/hello&silly=billy&name=pcjs Hello pcj(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_redirect_paramCs   cCs-tidƒiƒ}d|jpt‚dS(Ns/redirect_cookie?name=stefanhasHello stefanha(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_redirect_cookieRscCs-tidƒiƒ}d|jpt‚dS(Ns/sub/redirect_subs sub index(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt$test_subcontroller_redirect_subindexVscCs-tidƒiƒ}d|jpt‚dS(Ns/sub2/s hello list(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt%test_subcontroller_redirect_sub2indexZscCs-tidƒiƒ}d|jpt‚dS(Ns /sub2/findmetlookup(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt_test_subcontroller_lookup_scCs-tidƒiƒ}d|jpt‚dS(Ns/sub2/s hello list(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt.test_subcontroller_redirect_no_slash_sub2indexdscCs2tidƒiƒ}|GHd|jpt‚dS(Ns/sub/redirect_lists hello list(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt test_redirect_to_list_of_stringshscCs-tidƒiƒ}d|jpt‚dS(Ns/flash_redirects Wow, flash!(RRR R(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_flash_redirectmscCs'tidƒ}d|jpt‚dS(Ns/flash_no_redirects Wow, flash!(RRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_flash_no_redirectqscCs?tidƒiƒ}|iidƒ}d|jpt‚dS(Ns/flash_unicodetutf8uПривет, мир!(RRR RtdecodeR(Rtcontent((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_flash_unicodeuscCs'tidƒ}d|jpt‚dS(Ns /flash_statustok(RRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_flash_statuszscCs*tidƒ}d|ijpt‚dS(Ns+/stacked_expose/?tg_format=application/jsons {"got_json(RRRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_tg_format_param~scCsQtidƒ}dt|iƒdjp t|‚|idjp t|‚dS(Ns/custom_content_types image/pngs Content-TypetPNG(RRR#RRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_custom_content_type‚s$cCsQtidƒ}dt|iƒdjp t|‚|idjp t|‚dS(Ns/custom_content_text_plain_typestext/plain; charset=utf-8s Content-Typesa
bx(RRR#RRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyt#test_custom_text_plain_content_type‡s$cCsQtidƒ}dt|iƒdjp t|‚|idjp t|‚dS(Ns/custom_content_type2s image/pngs Content-TypetPNG2(RRR#RRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_custom_content_type2Œs$cCstidƒ}dS(Ns /test_url_sop(RR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_basicurls‘scCs'tidƒ}dp t|i‚dS(Ns*/check_params?ignore='bar'&ignore_me='foo's None Recieved(RRRR(R((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyttest_ignore_parameters”s($tost tg.test_stackRRtwebtestRt nose.toolsRttgR RRRRRRR!R"R$R%R&R'R(R*R+R,R-R.R2R4R5R7R8R:R;R<(((sL/usr/lib/python2.6/site-packages/tg/test_stack/dispatch/test_url_dispatch.pyts>