From 4faafd8a2699d368157d8b2d3d57695122159f0d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 25 Aug 2016 14:09:44 -0700 Subject: [PATCH] propgridpagestate tweaks and add simple tests --- etg/propgridpagestate.py | 2 +- unittests/test_propgridpagestate.py | 24 ++++++++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/etg/propgridpagestate.py b/etg/propgridpagestate.py index 33ac346b..d5b91bda 100644 --- a/etg/propgridpagestate.py +++ b/etg/propgridpagestate.py @@ -20,7 +20,7 @@ DOCSTRING = "" ITEMS = [ 'wxPropertyGridHitTestResult', 'wxPropertyGridIteratorBase', 'wxPropertyGridIterator', - 'wxPropertyGridConstIterator', + #'wxPropertyGridConstIterator', # probably not needed in Python... 'wxPGVIterator', 'wxPropertyGridPageState', ] diff --git a/unittests/test_propgridpagestate.py b/unittests/test_propgridpagestate.py index 710ff883..43181df6 100644 --- a/unittests/test_propgridpagestate.py +++ b/unittests/test_propgridpagestate.py @@ -7,10 +7,26 @@ import wx.propgrid as pg class propgridpagestate_Tests(wtc.WidgetTestCase): - # TODO: Remove this test and add real ones. - def test_propgridpagestate1(self): - self.fail("Unit tests for propgridpagestate not implemented yet.") - + + def test_propgridpagestate01(self): + r = pg.PropertyGridHitTestResult() + + + def test_propgridpagestate02(self): + ib = pg.PropertyGridIteratorBase() + ii = pg.PropertyGridIterator() + + + def test_propgridpagestate03(self): + i = pg.PGVIterator() + + + def test_propgridpagestate04(self): + s = pg.PropertyGridPageState() + + + + #--------------------------------------------------------------------------- if __name__ == '__main__':