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/l/e/learnpython.in.ua-HEAD/learnpython/tests/test_flasktesting.py   learnpython.in.ua(Download)
            with self.mail.record_messages() as outbox:
                response = self.client.post(url, data=data)
                self.assertStatus(response, 302)
                self.assertTrue(
                    response.headers['Location'].startswith(status_url)

src/l/e/learnpython.in.ua-HEAD/learnpython/tests/test_webtest.py   learnpython.in.ua(Download)
            with self.mail.record_messages() as outbox:
                response = form.submit()
                self.assertStatus(response, 302)
                self.assertIn(self.status_url, response.headers['Location'])