Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/m/e/mediadrop-HEAD/mediadrop/lib/tests/current_url_test.py   mediadrop(Download)
from mediadrop.lib.test.pythonic_testcase import *
from mediadrop.lib.test.request_mixin import RequestMixin
from mediadrop.lib.test.support import create_wsgi_environ
from mediadrop.lib.util import current_url
 
    def test_can_return_correct_url_even_for_whoopsidasy_page(self):
        user_url = 'http://server.example:8080/media/view?id=123'
        user_environ = create_wsgi_environ(user_url, 'GET')
        user_request = Request(user_environ, charset='utf-8')
        self._inject_url_generator_for_request(user_request)