예제 #1
0
    def test_user_logout_functionality_works(self):
        """
        Test that logout clears the session
        """
        self.request.session = {'user': '******'}

        sign_out(self.request)
        self.assertEquals(self.request.session, {})
예제 #2
0
 def test_signout_view_signs_out_user(self):
     self.request.session = {'user': '******'}
     sign_out(self.request)
     self.assertEquals({}, self.request.session)