diff options
Diffstat (limited to 'Lib/lib-tk/test/widget_tests.py')
-rw-r--r-- | Lib/lib-tk/test/widget_tests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/lib-tk/test/widget_tests.py b/Lib/lib-tk/test/widget_tests.py index b50c3bc..28b245d 100644 --- a/Lib/lib-tk/test/widget_tests.py +++ b/Lib/lib-tk/test/widget_tests.py @@ -221,6 +221,16 @@ class AbstractWidgetTest(object): def checkVariableParam(self, widget, name, var): self.checkParam(widget, name, var, conv=str) + def assertIsBoundingBox(self, bbox): + self.assertIsNotNone(bbox) + self.assertIsInstance(bbox, tuple) + if len(bbox) != 4: + self.fail('Invalid bounding box: %r' % (bbox,)) + for item in bbox: + if not isinstance(item, int): + self.fail('Invalid bounding box: %r' % (bbox,)) + break + class StandardOptionsTests(object): STANDARD_OPTIONS = ( |