1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

samba.netcmd: Reintroduce Command.name.

This commit is contained in:
Jelmer Vernooij
2011-10-13 23:16:58 +02:00
parent 27afc3e578
commit b5d5945801
2 changed files with 13 additions and 0 deletions

View File

@ -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)