#!/usr/bin/env python
import unittest

from kiwi.ui.widgets.checkbutton import ProxyCheckButton


class CheckButtonTest(unittest.TestCase):
    def testForBool(self):
        myChkBtn = ProxyCheckButton()
        # PyGObject bug, we cannot set bool in the constructor with
        # introspection
        #self.assertEqual(myChkBtn.props.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()

#!/usr/bin/env python
import unittest

import gtk

from kiwi.ui.widgets.checkbutton import ProxyCheckButton


class CheckButtonTest(unittest.TestCase):
    def testForBool(self):
        myChkBtn = ProxyCheckButton()
        assert isinstance(myChkBtn, gtk.CheckButton)
        # PyGObject bug, we cannot set bool in the constructor with
        # introspection
        #self.assertEqual(myChkBtn.props.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()

Add a silly assert to avoid a pyflakes warning
Add a silly assert to avoid a pyflakes warning