def test_not_logged_in_users_cannot_logout(self): response = helper.logout(self) self.assertNotIn(b'Goodbye!', response.data)
def test_logged_in_users_can_logout(self): helper.register(self, 'Fletcher', '*****@*****.**', 'python101', 'python101') helper.login(self, 'Fletcher', 'python101') response = helper.logout(self) self.assertIn(b'Goodbye!', response.data)