def test_validate_pin_return_error(self): with self.assertRaises(PinValidationError): account = Account('1', '1234', 100) self.assertTrue(account.verify_pin('4321'))
def test_validate_pin_without_errors(self): account = Account('1', '1234', 100) self.assertTrue(account.verify_pin('1234'))