def test_patchobject_wont_create_by_default(self):
        try:
            @patch.object(SomeClass, 'ord', sentinel.Frooble)
            def test():
                self.fail('Patching non existent attributes should fail')

            test()
        except __HOLE__:
            pass
        else:
            self.fail('Patching non existent attributes should fail')
        self.assertFalse(hasattr(SomeClass, 'ord'))
dataset/ETHPy150Open testing-cabal/mock/mock/tests/testpatch.py/PatchTest.test_patchobject_wont_create_by_default