mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
- comply with file naming convention - comply with class and method naming convention - basic tests for lib.calendar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
32 lines
785 B
Python
32 lines
785 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
import wx.lib.calendar as cal
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class lib_calendar_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_lib_calendar_CalendarCtor(self):
|
|
pnl = wx.Panel(self.frame)
|
|
|
|
acal = cal.Calendar(pnl)
|
|
|
|
def test_lib_calendar_CalendarSetDate(self):
|
|
pnl = wx.Panel(self.frame)
|
|
|
|
acal = cal.Calendar(pnl)
|
|
|
|
acal.SetYear(2014)
|
|
acal.SetMonth(1)
|
|
acal.SetDayValue(31)
|
|
|
|
def test_lib_calendar_CalenDlgCtor(self):
|
|
dlg = cal.CalenDlg(self.frame, month=1, day=11, year=2014)
|
|
dlg.Destroy()
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|