(self)
| 444 | self.assertEqual(self.repl.matches_iter.matches, ["Foo.bar"]) |
| 445 | |
| 446 | def test_substring_attribute_complete(self): |
| 447 | self.repl = FakeRepl( |
| 448 | {"autocomplete_mode": autocomplete.AutocompleteModes.SUBSTRING} |
| 449 | ) |
| 450 | self.set_input_line("Foo.az") |
| 451 | |
| 452 | code = "class Foo():\n\tdef baz(self):\n\t\tpass\n" |
| 453 | for line in code.split("\n"): |
| 454 | self.repl.push(line) |
| 455 | |
| 456 | self.assertTrue(self.repl.complete()) |
| 457 | self.assertTrue(hasattr(self.repl.matches_iter, "matches")) |
| 458 | self.assertEqual(self.repl.matches_iter.matches, ["Foo.baz"]) |
| 459 | |
| 460 | def test_fuzzy_attribute_complete(self): |
| 461 | self.repl = FakeRepl( |
nothing calls this directly
no test coverage detected