MCPcopy Index your code
hub / github.com/bpython/bpython / assertMatchesStdlib

Method assertMatchesStdlib

bpython/test/test_simpleeval.py:14–15  ·  view source on GitHub ↗
(self, expr)

Source from the content-addressed store, hash-verified

12
13class TestSimpleEval(unittest.TestCase):
14 def assertMatchesStdlib(self, expr):
15 self.assertEqual(ast.literal_eval(expr), simple_eval(expr))
16
17 def test_matches_stdlib(self):
18 """Should match the stdlib literal_eval if no names or indexing"""

Callers 2

test_matches_stdlibMethod · 0.95

Calls 1

simple_evalFunction · 0.90

Tested by

no test coverage detected