def test_patch_wont_create_by_default(self):
        try:
            @patch('%s.frooble' % builtin_string, sentinel.Frooble)
            def test():
                self.assertEqual(frooble, sentinel.Frooble)

            test()
        except __HOLE__:
            pass
        else:
            self.fail('Patching non existent attributes should fail')

        self.assertRaises(NameError, lambda: frooble)
dataset/ETHPy150Open calvinchengx/python-mock/tests/testpatch.py/PatchTest.test_patch_wont_create_by_default