- add a simple unittest

- force __allow_long to True on Py3
This commit is contained in:
wernerfb
2015-07-24 16:08:41 +02:00
parent b6e016fb3f
commit 92eab4f8fb
2 changed files with 32 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
import imp_unittest, unittest
import wtc
import wx
import wx.lib.intctrl as IC
#---------------------------------------------------------------------------
class IntCtrlTests(wtc.WidgetTestCase):
def test_intctrlCtor(self):
t1 = IC.IntCtrl(self.frame)
t2 = IC.IntCtrl(self.frame, -1, 10)
t3 = IC.IntCtrl(self.frame, value=32, min=32, max=72)
t3.ChangeValue(16)
self.assertTrue(not t3.IsInBounds())
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()