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

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

src/m/e/mediadrop-HEAD/mediadrop/controllers/tests/login_test.py   mediadrop(Download)
                server_name='server.example', request_uri='/login/post_login')
        self.set_authenticated_user(user)
        response = self.assert_redirect(lambda: self.call_controller(LoginController, request))
        return response
 

src/m/e/mediadrop-HEAD/mediadrop/controllers/tests/upload_test.py   mediadrop(Download)
    def test_can_submit_upload_with_plain_html_form(self):
        request = self.init_fake_request(method='POST', request_uri='/upload/submit', 
            post_vars=self._upload_parameters())
        response = self.assert_redirect(lambda: self._upload(request))
        assert_equals('http://mediadrop.example/upload/success', response.location)