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

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

src/l/e/learnpython.in.ua-HEAD/learnpython/tests/test_flasktesting.py   learnpython.in.ua(Download)
    def test_nosubscribe(self):
        self.config('ALLOW_SUBSCRIBERS', False)
 
        response = self.client.get(self.subscribe_url)
        self.assertEqual(response.status_code, 200)

src/l/e/learnpython.in.ua-HEAD/learnpython/tests/test_webtest.py   learnpython.in.ua(Download)
    def test_nosubscribe(self):
        self.config('ALLOW_SUBSCRIBERS', False)
 
        response = self.webtest.get(self.subscribe_url, status=200)
        doc = response.pyquery

src/l/e/learnpython.in.ua-HEAD/learnpython/tests/test_twill.py   learnpython.in.ua(Download)
    def test_nosubscribe(self):
        self.config('ALLOW_SUBSCRIBERS', False)
 
        with Twill(self.app, port=self.port) as (t, c):
            c.go(t.url(self.subscribe_url))