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

Method test_simple

bpython/test/test_curtsies_repl.py:299–304  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 self.repl = create_repl()
298
299 def test_simple(self):
300 self.assertEqual(self.repl.predicted_indent(""), 0)
301 self.assertEqual(self.repl.predicted_indent("class Foo:"), 4)
302 self.assertEqual(self.repl.predicted_indent("class Foo: pass"), 0)
303 self.assertEqual(self.repl.predicted_indent("def asdf():"), 4)
304 self.assertEqual(self.repl.predicted_indent("def asdf(): return 7"), 0)
305
306 @unittest.skip("This would be interesting")
307 def test_complex(self):

Callers

nothing calls this directly

Calls 1

predicted_indentMethod · 0.80

Tested by

no test coverage detected