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, {})
def test_signout_view_signs_out_user(self): self.request.session = {'user': '******'} sign_out(self.request) self.assertEquals({}, self.request.session)