Show More
@@ -292,11 +292,13 b' def test_omit__names():' | |||||
292 | s,matches = c.complete('ip.') |
|
292 | s,matches = c.complete('ip.') | |
293 | nt.assert_in('ip.__str__', matches) |
|
293 | nt.assert_in('ip.__str__', matches) | |
294 | nt.assert_in('ip._hidden_attr', matches) |
|
294 | nt.assert_in('ip._hidden_attr', matches) | |
|
295 | cfg = Config() | |||
295 | cfg.IPCompleter.omit__names = 1 |
|
296 | cfg.IPCompleter.omit__names = 1 | |
296 | c.update_config(cfg) |
|
297 | c.update_config(cfg) | |
297 | s,matches = c.complete('ip.') |
|
298 | s,matches = c.complete('ip.') | |
298 | nt.assert_not_in('ip.__str__', matches) |
|
299 | nt.assert_not_in('ip.__str__', matches) | |
299 | nt.assert_in('ip._hidden_attr', matches) |
|
300 | nt.assert_in('ip._hidden_attr', matches) | |
|
301 | cfg = Config() | |||
300 | cfg.IPCompleter.omit__names = 2 |
|
302 | cfg.IPCompleter.omit__names = 2 | |
301 | c.update_config(cfg) |
|
303 | c.update_config(cfg) | |
302 | s,matches = c.complete('ip.') |
|
304 | s,matches = c.complete('ip.') |
General Comments 0
You need to be logged in to leave comments.
Login now