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

Method test_grid_anchor

Lib/test/test_tkinter/test_geometry_managers.py:800–808  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

798 self.assertEqual(info['sticky'], 'ns')
799
800 def test_grid_anchor(self):
801 with self.assertRaisesRegex(TclError, 'bad anchor "x"'):
802 self.root.grid_anchor('x')
803 with self.assertRaisesRegex(TclError, 'ambiguous anchor ""'):
804 self.root.grid_anchor('')
805 with self.assertRaises(TypeError):
806 self.root.grid_anchor('se', 'nw')
807 self.root.grid_anchor('se')
808 self.assertEqual(self.root.tk.call('grid', 'anchor', self.root), 'se')
809
810 def test_grid_bbox(self):
811 self.assertEqual(self.root.grid_bbox(), (0, 0, 0, 0))

Callers

nothing calls this directly

Calls 5

assertRaisesRegexMethod · 0.80
grid_anchorMethod · 0.80
assertRaisesMethod · 0.45
assertEqualMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected