test_lib_ticker.py 520 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import unittest
from unittests import wtc
from wx.lib.ticker import Ticker

#---------------------------------------------------------------------------

class lib_ticker_Tests(wtc.WidgetTestCase):

    def test_lib_ticker(self):
        self.ticker = Ticker(self.frame)

        txt = 'a nice ticker text'
        self.ticker.SetText(txt)
        self.assertEqual(self.ticker.GetText(), txt)


#---------------------------------------------------------------------------

if __name__ == '__main__':
    unittest.main()