def test_check_user_account_status_invalid(self): self.user.is_active = False self.user.save() invalid = rules.check_user_account_status(self.user) self.assertEqual(invalid, 'UIN') self.assertEqual(rules.REPLY_CODES_MESSAGES[invalid], 'User Inactive')
def test_check_user_account_status_valid(self): self.assertTrue(rules.check_user_account_status(self.user))