mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-11 05:24:56 -05:00
Added Fuzzy docstrings; make-test now runs doctests in tests/*; fixed 'existant' mispelling
This commit is contained in:
committed by
Rob Crittenden
parent
bf9d4c5984
commit
ab1aba5a9a
@@ -40,21 +40,21 @@ class test_group(Declarative):
|
||||
################
|
||||
# create group1:
|
||||
dict(
|
||||
desc='Try to retrieve non-existant %r' % group1,
|
||||
desc='Try to retrieve non-existent %r' % group1,
|
||||
command=('group_show', [group1], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to update non-existant %r' % group1,
|
||||
desc='Try to update non-existent %r' % group1,
|
||||
command=('group_mod', [group1], dict(description=u'Foo')),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to delete non-existant %r' % group1,
|
||||
desc='Try to delete non-existent %r' % group1,
|
||||
command=('group_del', [group1], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
@@ -191,21 +191,21 @@ class test_group(Declarative):
|
||||
################
|
||||
# create group2:
|
||||
dict(
|
||||
desc='Try to retrieve non-existant %r' % group2,
|
||||
desc='Try to retrieve non-existent %r' % group2,
|
||||
command=('group_show', [group2], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to update non-existant %r' % group2,
|
||||
desc='Try to update non-existent %r' % group2,
|
||||
command=('group_mod', [group2], dict(description=u'Foo')),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to delete non-existant %r' % group2,
|
||||
desc='Try to delete non-existent %r' % group2,
|
||||
command=('group_del', [group2], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
@@ -428,21 +428,21 @@ class test_group(Declarative):
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to delete non-existant %r' % group1,
|
||||
desc='Try to delete non-existent %r' % group1,
|
||||
command=('group_del', [group1], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to retrieve non-existant %r' % group1,
|
||||
desc='Try to retrieve non-existent %r' % group1,
|
||||
command=('group_show', [group1], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to update non-existant %r' % group1,
|
||||
desc='Try to update non-existent %r' % group1,
|
||||
command=('group_mod', [group1], dict(description=u'Foo')),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
@@ -463,21 +463,21 @@ class test_group(Declarative):
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to delete non-existant %r' % group2,
|
||||
desc='Try to delete non-existent %r' % group2,
|
||||
command=('group_del', [group2], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to retrieve non-existant %r' % group2,
|
||||
desc='Try to retrieve non-existent %r' % group2,
|
||||
command=('group_show', [group2], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to update non-existant %r' % group2,
|
||||
desc='Try to update non-existent %r' % group2,
|
||||
command=('group_mod', [group2], dict(description=u'Foo')),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
),
|
||||
|
||||
@@ -81,7 +81,7 @@ class test_pwpolicy(XMLRPC_test):
|
||||
|
||||
def test_4_pwpolicy_add(self):
|
||||
"""
|
||||
Add a pwpolicy for a non-existant group
|
||||
Add a pwpolicy for a non-existent group
|
||||
"""
|
||||
try:
|
||||
api.Command['pwpolicy_add'](group=u'nopwpolicy',cospriority=1,krbminpwdlife=1)
|
||||
|
||||
Reference in New Issue
Block a user