MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_uncreated_attr

Method test_uncreated_attr

Lib/test/test_rlcompleter.py:141–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 3

completeMethod · 0.95
FooClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected