

def _test_postrelease_after():
    "\n    The postrelease_after hook is by far the trickiest part of this releaser\n    hook, so it's helpful for development to have a simple test function for\n    it.\n\n    This test monkey-patches _ZopeProxy so that the update() method just prints\n    the contents that would be updated, without actually doing so.\n    "

    def update(self, content):
        print_(content)
        return
    _ZopeProxy.update = update
    test_releaser = ReleaseManager()
    test_releaser.history_lines = [l.rstrip('\n') for l in open('CHANGES.txt').readlines()]
    test_releaser.postreleaser_after({
        'name': 'pyfits',
    })

dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/_release.py _test_postrelease_after/original