Ensure that items returned by GetChildren are the right type

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-07-20 01:47:15 +00:00
parent cddb7c88df
commit eb0cbeeeff
2 changed files with 15 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ class sizer_Tests(wtc.WidgetTestCase):
])
items = bs.GetChildren()
self.assertTrue(len(items) == 3)
self.assertTrue(isinstance(items[0], wx.SizerItem))
self.assertTrue(items[0].IsWindow())
self.assertTrue(items[1].IsSpacer())
self.assertTrue(items[2].Border == 5)