summaryrefslogtreecommitdiff
path: root/tests/test_CheckButton.py
blob: a83801011a435815aff52ae0e29e0d779b876d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
import unittest

from kiwi.ui.widgets.checkbutton import ProxyCheckButton

class CheckButtonTest(unittest.TestCase):
    def testForBool(self):
        myChkBtn = ProxyCheckButton()
        self.assertEqual(myChkBtn.get_property("data-type"), bool)

        # this test doens't work... maybe be a pygtk bug
        #self.assertRaises(TypeError, myChkBtn.set_property, 'data-type', str)

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