

@setup_teardown
def mock_test_result(self):
    test_method = mock.Mock(__name__='test_name')
    with mock.patch('testify.TestCase.test_result', new_callable=mock.PropertyMock) as test_result:
        test_result.return_value = TestResult(self)
        (yield)

dataset/ETHPy150Open Yelp/Testify/test/test_result_test.py TestResultTestCase.mock_test_result/VarMisuse@48/78 `test_method`->`self`