(self)
| 139 | |
| 140 | |
| 141 | def test_uncreated_attr(self): |
| 142 | # Attributes like properties and slots should be completed even when |
| 143 | # they haven't been created on an instance |
| 144 | class Foo: |
| 145 | __slots__ = ("bar",) |
| 146 | completer = rlcompleter.Completer(dict(f=Foo())) |
| 147 | self.assertEqual(completer.complete('f.', 0), 'f.bar') |
| 148 | |
| 149 | @unittest.mock.patch('rlcompleter._readline_available', False) |
| 150 | def test_complete(self): |
nothing calls this directly
no test coverage detected