def test_unlock_account_verifies_account(self):
     user = User(failed_logins=13, account_verified=False, account_locked=True)
     user.unlock_account()
     self.assertEqual(True, user.account_verified)
 def test_unlock_account_resets_failed_logins(self):
     user = User(failed_logins=13, account_locked=True)
     user.unlock_account()
     self.assertEqual(0, user.failed_logins)