diff options
Diffstat (limited to 'test/test_console.py')
-rw-r--r-- | test/test_console.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_console.py b/test/test_console.py index 9236baff..98a1270f 100644 --- a/test/test_console.py +++ b/test/test_console.py @@ -123,6 +123,17 @@ class uformat_flow(libpry.AutoTree): class uPathCompleter(libpry.AutoTree): + def test_lookup_construction(self): + c = console._PathCompleter() + assert c.complete("/tm") == "/tmp/" + c.reset() + + assert c.complete("./completion/a") == "./completion/aaa" + c.reset() + assert c.complete("./completion/aaa") == "./completion/aaa" + assert c.complete("./completion/aaa") == "./completion/aab" + + def test_completion(self): c = console._PathCompleter(True) c.reset() @@ -152,6 +163,7 @@ class uPathCompleter(libpry.AutoTree): + tests = [ uformat_keyvals(), uformat_flow(), |