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

Method test_init

Lib/idlelib/idle_test/test_squeezer.py:138–143  ·  view source on GitHub ↗

Test the creation of Squeezer instances.

(self)

Source from the content-addressed store, hash-verified

136 self.assertEqual(squeezer.count_lines(text), expected)
137
138 def test_init(self):
139 """Test the creation of Squeezer instances."""
140 editwin = self.make_mock_editor_window()
141 squeezer = self.make_squeezer_instance(editwin)
142 self.assertIs(squeezer.editwin, editwin)
143 self.assertEqual(squeezer.expandingbuttons, [])
144
145 def test_write_no_tags(self):
146 """Test Squeezer's overriding of the EditorWindow's write() method."""

Callers

nothing calls this directly

Calls 4

assertIsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected