예제 #1
0
 def get_command(self, ctx, name):
     command = registry.get_command(name)
     return command
예제 #2
0
def test_iprofile_class():
    iprofile = console.IProfile()
    assert iprofile.list_commands({}) == sorted(registry.get_all())
    assert iprofile.get_command({}, 'shell') == registry.get_command('shell')