diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-03-29 09:12:36 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-04-05 15:04:45 +0200 |
commit | cdebb29fecdd959808b4f0ea0245e371eba06eae (patch) | |
tree | 38b8ea4a5d0f6df846e29e6cf5b39930defd0914 /tests/util.py | |
parent | 51b34d5c4249e540510993fe600d222f22fcda16 (diff) | |
download | freeipa-cdebb29fecdd959808b4f0ea0245e371eba06eae.tar.gz freeipa-cdebb29fecdd959808b4f0ea0245e371eba06eae.tar.xz freeipa-cdebb29fecdd959808b4f0ea0245e371eba06eae.zip |
Check whether the default user group is POSIX when adding new user with --noprivate.
ticket 2572
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py index 7929321a1..54a8dd14f 100644 --- a/tests/util.py +++ b/tests/util.py @@ -107,6 +107,14 @@ def assert_equal(val1, val2): assert val1 == val2, '%r != %r' % (val1, val2) +def assert_not_equal(val1, val2): + """ + Assert ``val1`` and ``val2`` are the same type and of non-equal value. + """ + assert type(val1) is type(val2), '%r != %r' % (val1, val2) + assert val1 != val2, '%r == %r' % (val1, val2) + + class Fuzzy(object): """ Perform a fuzzy (non-strict) equality tests. |