From 739e67ca7d34e05fd3c6c8078c4b5d7134504be1 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Sun, 20 Jul 2008 02:40:49 +0000 Subject: 12: Fixed test_base.test_API.test_finalize() unit tests now that CrudLike has 4 commands, not 5 --- ipalib/tests/test_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/tests') diff --git a/ipalib/tests/test_base.py b/ipalib/tests/test_base.py index aefe4fa3f..818b7713a 100644 --- a/ipalib/tests/test_base.py +++ b/ipalib/tests/test_base.py @@ -334,11 +334,11 @@ class test_API: pass names = list(user().commands) - assert len(names) == 5 + assert len(names) == 4 full_names = set() for o in ['user', 'group', 'service']: full_names.update('%s_%s' % (v, o) for v in names) - assert len(full_names) == 15 + assert len(full_names) == 12 api = self.new() @@ -358,5 +358,5 @@ class test_API: commands = read_only(api, 'commands') assert type(commands) is base.NameSpace 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) -- cgit