staticgenerator/tests/unit/test_staticgenerator.py
def handler(_request):
            """A mock request handler

            At the time of the request, the current content should be hard
            linked to the stale version.

            """
            current_content = open('test_web_root/fresh/some_path').read()
            return Mock(content=('this content replaces {0!r}'
                                 .format(current_content)),
                        status_code=200)
A mock request handler

            At the time of the request, the current content should be hard
            linked to the stale version.

            
A mock request handler
At the time of the request, the current content should be hard
linked to the stale version.
A mock request handler At the time of the request the current content should be hard linked to the stale version .
def handler(_request):
            current_content = open('test_web_root/fresh/some_path').read()
            return Mock(content=('this content replaces {0!r}'
                                 .format(current_content)),
                        status_code=200)
def handler ( _request ) : current_content = open ( 'test_web_root/fresh/some_path' ) . read ( ) return Mock ( content = ( 'this content replaces {0!r}' . format ( current_content ) ) , status_code = 200 )
A mock request handler
At the time of the request, the current content should be hard
linked to the stale version.
A mock request handler At the time of the request the current content should be hard linked to the stale version .
"""A mock request handler

            At the time of the request, the current content should be hard
            linked to the stale version.

            """
_request