def test_set_to_bad_type (self):
        demo = DemoClass ()
        try:
            demo.string = 42
            self.fail('expected error')
        except __HOLE__ as e:
            self.assertEqual("string: expected type <type 'str'> got <type 'int'>", e.message)
dataset/ETHPy150Open psidnell/ofexport/src/test/python/types_test.py/Test_typeof.test_set_to_bad_type