def test_type_hierarchy_bad (self):
        demo = DemoClass ()
        try:
            demo.child = Parent ()
            self.fail('expected error')
        except __HOLE__ as e:
            self.assertEqual("child: expected type <class 'types_test.Child'> got <class 'types_test.Parent'>", e.message)
dataset/ETHPy150Open psidnell/ofexport/src/test/python/types_test.py/Test_typeof.test_type_hierarchy_bad