We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce0bd0a commit b0951cdCopy full SHA for b0951cd
bpython/test/test_autocomplete.py
@@ -309,6 +309,16 @@ def __getitem__(inner_self, i):
309
310
self.com.matches(5, 'a[0].', locals_={'a': FakeList()})
311
312
+ def test_literals_complete(self):
313
+ self.assertSetEqual(self.com.matches(10, '[a][0][0].',
314
+ locals_={'a': (Foo(),)}),
315
+ set(['method', 'a', 'b']))
316
+
317
+ def test_dictionaries_complete(self):
318
+ self.assertSetEqual(self.com.matches(7, 'a["b"].',
319
+ locals_={'a': {'b': Foo()}}),
320
321
322
323
class TestMagicMethodCompletion(unittest.TestCase):
324
0 commit comments