コード例 #1
0
 def test_register_commands(self):
     # Invoke the register_commands method and assert that the TestCommand
     # may be invoked.
     parser = BaseParser(exit=lambda x, *a, **kw: x)
     parser.register_commands(
         ['.'.join([TestCommand.__module__])]
     )