diff options
-rw-r--r-- | source4/scripting/python/samba/tests/netcmd.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/netcmd.py b/source4/scripting/python/samba/tests/netcmd.py index 3f6448ac28..d7c6482a46 100644 --- a/source4/scripting/python/samba/tests/netcmd.py +++ b/source4/scripting/python/samba/tests/netcmd.py @@ -81,3 +81,14 @@ class CommandTests(NetCmdTestCase): if missing: self.fail("The following commands do not have a synopsis set: %r" % missing) + + def test_short_description_everywhere(self): + missing = [] + for path, cmd in self.iter_all_subcommands(): + if cmd.short_description is None: + missing.append(path) + if not missing: + return + self.fail( + "The following commands do not have a short description set: %r" % + missing) |