MCPcopy Create free account
hub / github.com/bpython/bpython / test_simple

Method test_simple

bpython/test/test_line_properties.py:270–278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

268 self.func = current_object_attribute
269
270 def test_simple(self):
271 self.assertAccess("Object.<attr1|>")
272 self.assertAccess("Object.attr1.<attr2|>")
273 self.assertAccess("Object.<att|r1>.attr2")
274 self.assertAccess("stuff[stuff] + {123: 456} + Object.attr1.<attr2|>")
275 self.assertAccess("stuff[asd|fg]")
276 self.assertAccess("stuff[asdf[asd|fg]")
277 self.assertAccess("Object.attr1.<|attr2>")
278 self.assertAccess("Object.<attr1|>.attr2")
279
280
281class TestCurrentFromImportFrom(LineTestCase):

Callers

nothing calls this directly

Calls 1

assertAccessMethod · 0.80

Tested by

no test coverage detected