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/d/j/django-paranoia-HEAD/django_paranoia/tests/test.py   django-paranoia(Download)
    def test_paranoia(self):
        middle = ParanoidSessionMiddleware()
        request = RequestFactory().get('/')
        middle.process_request(request)
        request.session['foo'] = 'bar'
    def test_paranoid_session_must_be_correct_instance(self):
        middle = ParanoidSessionMiddleware()
        request = RequestFactory().get('/')
        with self.assertRaises(ValueError):
            middle.process_request(request)