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