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

Method test_indexing

bpython/test/test_simpleeval.py:30–32  ·  view source on GitHub ↗

Literals can be indexed into

(self)

Source from the content-addressed store, hash-verified

28 self.assertMatchesStdlib("set()")
29
30 def test_indexing(self):
31 """Literals can be indexed into"""
32 self.assertEqual(simple_eval("[1,2][0]"), 1)
33
34 def test_name_lookup(self):
35 """Names can be looked up in a namespace"""

Callers

nothing calls this directly

Calls 1

simple_evalFunction · 0.90

Tested by

no test coverage detected