Check whether the default user group is POSIX when adding new user with --noprivate.

ticket 2572
This commit is contained in:
Jan Cholasta
2012-03-29 09:12:36 -04:00
committed by Martin Kosek
parent 51b34d5c42
commit cdebb29fec
5 changed files with 183 additions and 10 deletions

View File

@@ -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.