def test_set_attr(self):
        self.b.known_attr = 7
        self.assertEqual(self.b.known_attr, 7)
        try:
            self.fi.a.known_attr = 7
        except __HOLE__:
            pass
        else:
            self.fail("setting attributes on methods should raise error")
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_funcattrs.py/ArbitraryFunctionAttrTest.test_set_attr