Esempio n. 1
0
 def list_commands(self, ctx):
     return sorted(registry.get_all())
Esempio n. 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')