55class TestSSH :
66 def test_basic (self , bash ):
77 for cmdline , expected_result in [
8- ("git clone loc" , []), # initially has no autocompletions
9- ("git clone localhost:f" , ['oo/' ]),
10- ("git clone localhost:foo/" , ['rep ' ]),
11- ("git clone lo" , ['calhost:' ]) # should remembe the hostnme after a successful login
8+ ("git clone test-dummy- loc" , []), # initially has no autocompletions
9+ ("git clone test-dummy- localhost:f" , ['oo/' ]),
10+ ("git clone test-dummy- localhost:foo/" , ['rep ' ]),
11+ ("git clone test-dummy- lo" , ['calhost:' ]) # should remembe the hostnme after a successful login
1212 ]:
1313 expected_result .sort ()
1414
@@ -17,10 +17,10 @@ def test_basic(self, bash):
1717
1818 def test_weird (self , bash ):
1919 for cmdline , expected_result in [
20- ("git clone localhost:w" , [ 'eird/' ]),
21- ("git clone localhost:weird/" , [ r'weird/a\ b\ c/' , r'weird/x\ \&\ \[\]\ \:\ \$\ xx\ \?/' , r'weird/bar/' , r'weird/x\ \=\ y/' ]),
22- ("git clone localhost:weird/x\\ \\ " , [ r'weird/x\ \&\ \[\]\ \:\ \$\ xx\ \?/' , r'weird/x\ \=\ y/' ]), # test completion on escaped character
23- (r"git clone localhost:weird/x\ \=\ " , [ r'y/' ]),
20+ ("git clone test-dummy- localhost:w" , [ 'eird/' ]),
21+ ("git clone test-dummy- localhost:weird/" , [ r'weird/a\ b\ c/' , r'weird/x\ \&\ \[\]\ \:\ \$\ xx\ \?/' , r'weird/bar/' , r'weird/x\ \=\ y/' ]),
22+ ("git clone test-dummy- localhost:weird/x\\ \\ " , [ r'weird/x\ \&\ \[\]\ \:\ \$\ xx\ \?/' , r'weird/x\ \=\ y/' ]), # test completion on escaped character
23+ (r"git clone test-dummy- localhost:weird/x\ \=\ " , [ r'y/' ]),
2424 ]:
2525 expected_result .sort ()
2626
@@ -46,7 +46,7 @@ def test_cache_expiration(self, bash):
4646
4747 # verify that re-adding localhost won't squeeze test-dummy-0 out of the cache
4848 # and that test-dummy-1 got squeezed out
49- assert bash .complete ("git clone localhost:f" ) == [ 'oo/' ], f"Unexpected completion for `{ cmdline } `"
49+ assert bash .complete ("git clone test-dummy- localhost:f" ) == [ 'oo/' ], f"Unexpected completion for `{ cmdline } `"
5050 assert bash .complete ("git clone test-dummy-0" ) == [ ':' ], f"Unexpected completion for `{ cmdline } `"
5151 assert bash .complete ("git clone test-dummy-1" ) == [], f"Didn't expire a host from cache"
5252 except :
0 commit comments