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