def test_setting_attrs_duplicates(self):
        try:
            self.f.a.klass = self.f
        except __HOLE__:
            pass
        else:
            self.fail("setting arbitrary attribute in unbound function "
                      " should raise AttributeError")
        self.f.a.im_func.klass = self.f
        for method in [self.f.a, self.fi.a, self.fi.a.im_func]:
            self.assertEqual(method.klass, self.f)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_funcattrs.py/ArbitraryFunctionAttrTest.test_setting_attrs_duplicates