示例#1
0
    def test_get_user_no_sess_key(self):
        self.request.session = SessionStore()
        obtained_user = get_user(self.request)

        assert_equals(AnonymousUser, obtained_user.__class__)
示例#2
0
    def test_get_user_no_sess_key(self):
        self.request.session = SessionStore()
        obtained_user = get_user(self.request)

        assert_equals(AnonymousUser, obtained_user.__class__)
示例#3
0
    def test_get_user_via_sess_key(self):
        obtained_user = get_user(self.request)

        assert_equals(obtained_user, self.user)
示例#4
0
    def test_get_user_via_sess_key(self):
        obtained_user = get_user(self.request)

        assert_equals(obtained_user, self.user)