diff options
-rw-r--r-- | ipalib/frontend.py | 4 | ||||
-rw-r--r-- | tests/test_ipalib/test_frontend.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index ce92cf537..639160c11 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -656,9 +656,7 @@ class Command(plugable.Plugin): ... return self.api.Backend.ldap.add(**kw) ... """ - print '%s.execute():' % self.name - print ' args =', args - print ' kw =', kw + raise NotImplementedError('%s.execute()' % self.name) def forward(self, *args, **kw): """ diff --git a/tests/test_ipalib/test_frontend.py b/tests/test_ipalib/test_frontend.py index b798d2ee7..89b77ad71 100644 --- a/tests/test_ipalib/test_frontend.py +++ b/tests/test_ipalib/test_frontend.py @@ -685,6 +685,9 @@ class test_Command(ClassChecker): Test the `ipalib.frontend.Command.execute` method. """ assert 'execute' in self.cls.__public__ # Public + o = self.cls() + e = raises(NotImplementedError, o.execute) + assert str(e) == 'Command.execute()' def test_args_to_kw(self): """ |