Update test_window.py

Add checks to ensure correct type is returned per input.
This commit is contained in:
Mesalu
2017-07-13 11:18:49 -07:00
committed by GitHub
parent 1c767aad21
commit b1b91dface

View File

@@ -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