mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02:00
31 lines
749 B
Python
31 lines
749 B
Python
import unittest
|
|
from unittests import wtc
|
|
import wx
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class activityindicator_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_activityindicator1(self):
|
|
ai = wx.ActivityIndicator(self.frame)
|
|
ai.Start()
|
|
self.myYield()
|
|
assert ai.IsRunning()
|
|
ai.Stop()
|
|
assert not ai.IsRunning()
|
|
|
|
def test_activityindicator2(self):
|
|
ai = wx.ActivityIndicator()
|
|
ai.Create(self.frame)
|
|
ai.Start()
|
|
self.myYield()
|
|
assert ai.IsRunning()
|
|
ai.Stop()
|
|
assert not ai.IsRunning()
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|