def test_get_user_no_sess_key(self): self.request.session = SessionStore() obtained_user = get_user(self.request) assert_equals(AnonymousUser, obtained_user.__class__)
def test_get_user_via_sess_key(self): obtained_user = get_user(self.request) assert_equals(obtained_user, self.user)