mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
12: Fixed test_base.test_API.test_finalize() unit tests now that CrudLike has 4 commands, not 5
This commit is contained in:
parent
700d58ac1e
commit
739e67ca7d
@ -334,11 +334,11 @@ class test_API:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
names = list(user().commands)
|
names = list(user().commands)
|
||||||
assert len(names) == 5
|
assert len(names) == 4
|
||||||
full_names = set()
|
full_names = set()
|
||||||
for o in ['user', 'group', 'service']:
|
for o in ['user', 'group', 'service']:
|
||||||
full_names.update('%s_%s' % (v, o) for v in names)
|
full_names.update('%s_%s' % (v, o) for v in names)
|
||||||
assert len(full_names) == 15
|
assert len(full_names) == 12
|
||||||
|
|
||||||
|
|
||||||
api = self.new()
|
api = self.new()
|
||||||
@ -358,5 +358,5 @@ class test_API:
|
|||||||
commands = read_only(api, 'commands')
|
commands = read_only(api, 'commands')
|
||||||
assert type(commands) is base.NameSpace
|
assert type(commands) is base.NameSpace
|
||||||
assert commands is api.commands # Same instance must be returned
|
assert commands is api.commands # Same instance must be returned
|
||||||
assert len(commands) is 15
|
assert len(commands) is 12
|
||||||
assert list(commands) == sorted(full_names)
|
assert list(commands) == sorted(full_names)
|
||||||
|
Loading…
Reference in New Issue
Block a user