forked from wxWidgets/Phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_collheaderctrl.py
34 lines (25 loc) · 1014 Bytes
/
test_collheaderctrl.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import unittest
from unittests import wtc
import wx
#---------------------------------------------------------------------------
class collheaderctrl_Tests(wtc.WidgetTestCase):
def test_collheaderctrl1(self):
chc = wx.CollapsibleHeaderCtrl(self.frame, label='Hello')
chc.SetCollapsed(True)
assert chc.IsCollapsed()
chc.SetCollapsed(False)
assert not chc.IsCollapsed()
def test_collheaderctrl2(self):
chc = wx.CollapsibleHeaderCtrl()
chc.Create(self.frame, label='Hello')
chc.SetCollapsed(True)
assert chc.IsCollapsed()
chc.SetCollapsed(False)
assert not chc.IsCollapsed()
def test_collheaderctrl3(self):
wx.wxEVT_COLLAPSIBLEHEADER_CHANGED
wx.EVT_COLLAPSIBLEHEADER_CHANGED
assert wx.EVT_COLLAPSIBLEHEADER_CHANGED.typeId == wx.wxEVT_COLLAPSIBLEHEADER_CHANGED
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()