mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
- add a simple unittest
- force __allow_long to True on Py3
This commit is contained in:
23
unittests/test_lib_intctrl.py
Normal file
23
unittests/test_lib_intctrl.py
Normal 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()
|
||||
Reference in New Issue
Block a user