MCPcopy Index your code
hub / github.com/python/cpython / test_init

Method test_init

Lib/idlelib/idle_test/test_history.py:28–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 self.history.history = []
27
28 def test_init(self):
29 self.assertIs(self.history.text, self.text)
30 self.assertEqual(self.history.history, [])
31 self.assertIsNone(self.history.prefix)
32 self.assertIsNone(self.history.pointer)
33 self.assertEqual(self.history.cyclic,
34 idleConf.GetOption("main", "History", "cyclic", 1, "bool"))
35
36 def test_store_short(self):
37 self.history.store('a')

Callers

nothing calls this directly

Calls 4

assertIsNoneMethod · 0.80
GetOptionMethod · 0.80
assertIsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected