add a simple unittest

This commit is contained in:
wernerfb
2015-04-05 12:02:31 +02:00
parent c394c30f01
commit 714652eaa6
2 changed files with 1304 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import imp_unittest, unittest
import wtc
import wx
import wx.lib.throbber as th
import throbImages
images = [throbImages.catalog[i].GetBitmap()
for i in throbImages.index
if i not in ['eclouds', 'logo']]
#---------------------------------------------------------------------------
class lib_throbber_Tests(wtc.WidgetTestCase):
def test_lib_throbber(self):
pnl = wx.Panel(self.frame)
w = th.Throbber(pnl, -1, images, size=(36, 36))
def test_lib_throbber_Events(self):
th.EVT_UPDATE_THROBBER
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()

1277
unittests/throbImages.py Normal file

File diff suppressed because it is too large Load Diff