(self)
| 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)) |
nothing calls this directly
no test coverage detected