'Return a mock patching property OpcPackage.parts, reversing the
patch after each use.'

@pytest.fixture
def parts(self, request, parts_):

    _patch = patch.object(OpcPackage, 'parts', new_callable=PropertyMock, return_value=parts_)
    request.addfinalizer(_patch.stop)
    return _patch.start()
