summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2013-09-30 12:45:37 -0400
committerPetr Viktorin <pviktori@redhat.com>2013-10-09 18:05:37 +0200
commit4f6580f11ded1c456e0891023232b0d715d8aef7 (patch)
tree3aaf1b65fa94e570d8fb2ef44428aaa16b3e509b /ipatests/test_ipalib
parente05dfbd8b4b4e040266ecfba579bcd64e22b342b (diff)
downloadfreeipa-4f6580f11ded1c456e0891023232b0d715d8aef7.tar.gz
freeipa-4f6580f11ded1c456e0891023232b0d715d8aef7.tar.xz
freeipa-4f6580f11ded1c456e0891023232b0d715d8aef7.zip
Allow multiple types in Param type validation
Int already needed to take both int and long. This makes the functionality available for all Param classes.
Diffstat (limited to 'ipatests/test_ipalib')
-rw-r--r--ipatests/test_ipalib/test_parameters.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipatests/test_ipalib/test_parameters.py b/ipatests/test_ipalib/test_parameters.py
index 71acfce71..22c7b7355 100644
--- a/ipatests/test_ipalib/test_parameters.py
+++ b/ipatests/test_ipalib/test_parameters.py
@@ -1173,7 +1173,8 @@ class test_Int(ClassChecker):
"""
# Test with no kwargs:
o = self.cls('my_number')
- assert o.type is int
+ assert o.type == int
+ assert o.allowed_types == (int, long)
assert isinstance(o, parameters.Int)
assert o.minvalue == int(MININT)
assert o.maxvalue == int(MAXINT)