summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/frontend.py4
-rw-r--r--tests/test_ipalib/test_frontend.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index ce92cf53..639160c1 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 b798d2ee..89b77ad7 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):
"""