diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-03 20:05:24 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-03 20:05:24 +0000 |
commit | 390c1aa4ba9d2c54ac4c737c128f0561d14b58ab (patch) | |
tree | 6a4c60d79ffaaa59799a3405010bcb4e6fb9fd63 /ipalib/errors.py | |
parent | 5e8f945a1ea2f34f40a5e033801d66162fc63850 (diff) | |
download | freeipa.git-390c1aa4ba9d2c54ac4c737c128f0561d14b58ab.tar.gz freeipa.git-390c1aa4ba9d2c54ac4c737c128f0561d14b58ab.tar.xz freeipa.git-390c1aa4ba9d2c54ac4c737c128f0561d14b58ab.zip |
243: Added unit tests for errors.ValidationError
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r-- | ipalib/errors.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index eb08a7be..cf213d70 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -119,6 +119,8 @@ class ValidationError(IPAError): :param error: The error message describing the failure. :param index: If multivalue, index of value in multivalue tuple """ + assert type(name) is str + assert index is None or (type(index) is int and index >= 0) self.name = name self.value = value self.error = error |