Did I find the right examples for you? yes no

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

src/d/j/djangorestframework-composed-permissions-HEAD/restfw_composed_permissions/tests.py   djangorestframework-composed-permissions(Download)
    def test_allow_only_anonymous(self):
        request = self.make_request()
        request.user.is_anonymous = lambda: True
 
        instance = components.AllowOnlyAnonymous()

src/d/j/djangorestframework-composed-permissions-0.1/restfw_composed_permissions/tests.py   djangorestframework-composed-permissions(Download)
    def test_allow_only_anonymous(self):
        request = self.make_request()
        request.user.is_anonymous = lambda: True
 
        instance = components.AllowOnlyAnonymous()