From b5d59458012d1b9f91bd08f4c36fc108f23af19a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 13 Oct 2011 23:16:58 +0200 Subject: samba.netcmd: Reintroduce Command.name. --- source4/scripting/python/samba/tests/netcmd.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/scripting/python/samba/tests') diff --git a/source4/scripting/python/samba/tests/netcmd.py b/source4/scripting/python/samba/tests/netcmd.py index 4f06124482b..ac5164b4792 100644 --- a/source4/scripting/python/samba/tests/netcmd.py +++ b/source4/scripting/python/samba/tests/netcmd.py @@ -56,3 +56,8 @@ class CommandTests(samba.tests.TestCase): class cmd_foo(Command): """Mydescription""" self.assertEquals("Mydescription", cmd_foo().description) + + def test_name(self): + class cmd_foo(Command): + pass + self.assertEquals("foo", cmd_foo().name) -- cgit