From b1b91dface47cefe847e4a0e584b116d2f87fe4d Mon Sep 17 00:00:00 2001 From: Mesalu Date: Thu, 13 Jul 2017 11:18:49 -0700 Subject: [PATCH] Update test_window.py Add checks to ensure correct type is returned per input. --- unittests/test_window.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unittests/test_window.py b/unittests/test_window.py index 747e89cb..de9ccec1 100644 --- a/unittests/test_window.py +++ b/unittests/test_window.py @@ -122,6 +122,12 @@ class WindowTests(wtc.WidgetTestCase): val = self.frame.DLG_UNIT((10, 10)) _check(val) + val = wx.DLG_UNIT(self.frame, wx.Point(10, 10)) + assert isinstance(val, wx.Point) + + val = wx.DLG_UNIT(self.frame, wx.Size(10, 10)) + assert isinstance(val, wx.Size) + wx.DLG_SZE wx.DLG_PNT