(self)
| 391 | # COMPLETE TESTS |
| 392 | # 1. Global tests |
| 393 | def test_simple_global_complete(self): |
| 394 | self.repl = FakeRepl( |
| 395 | {"autocomplete_mode": autocomplete.AutocompleteModes.SIMPLE} |
| 396 | ) |
| 397 | self.set_input_line("d") |
| 398 | |
| 399 | self.assertTrue(self.repl.complete()) |
| 400 | self.assertTrue(hasattr(self.repl.matches_iter, "matches")) |
| 401 | self.assertEqual( |
| 402 | self.repl.matches_iter.matches, |
| 403 | ["def", "del", "delattr(", "dict(", "dir(", "divmod("], |
| 404 | ) |
| 405 | |
| 406 | def test_substring_global_complete(self): |
| 407 | self.repl = FakeRepl( |
nothing calls this directly
no test coverage detected