| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ce0bd0a commit b0951cd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -309,6 +309,16 @@ def __getitem__(inner_self, i): | |||
| 309 | 309 | ||
| 310 | 310 | self.com.matches(5, 'a[0].', locals_={'a': FakeList()}) | |
| 311 | 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 | + set(['method', 'a', 'b'])) | ||
| 321 | + | ||
| 312 | 322 | ||
| 313 | 323 | class TestMagicMethodCompletion(unittest.TestCase): | |
| 314 | 324 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments