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

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

src/m/o/mozservices-HEAD/mozsvc/tests/test_user.py   mozservices(Download)
            "HTTP_X_PASSWORD": "BAD PASSWORD",
        })
        self.assertFalse(request.user)
        # No username => request.user is empty
        request = self.make_request(environ={
            "HTTP_X_PASSWORD": "password1",
        })
        self.assertFalse(request.user)
            "HTTP_X_USERNAME": "user1",
        })
        self.assertFalse(request.user)
 
    def test_that_hawkauth_is_used_by_default(self):

src/m/o/mozsvc-0.7/mozsvc/tests/test_user.py   mozsvc(Download)
                    "HTTP_X_PASSWORD": "BAD PASSWORD",
                  })
        self.assertFalse(request.user)
        # No username => request.user is empty
        request = self.make_request(environ={
                    "HTTP_X_PASSWORD": "password1",
                  })
        self.assertFalse(request.user)
                    "HTTP_X_USERNAME": "user1",
                  })
        self.assertFalse(request.user)
 
    def test_that_macauth_is_used_by_default(self):