def test_readme_matches_docstring(self):
        dirname = os.path.dirname
        readme = os.path.join(dirname(dirname(__file__)),"README.rst")
        if not os.path.isfile(readme):
            f = open(readme,"wb")
            f.write(git_remote_hg.__doc__.encode())
            f.close()
        else:
            f = open(readme,"rb")
            if f.read() != git_remote_hg.__doc__:
                f.close()
                f = open(readme,"wb")
                f.write(git_remote_hg.__doc__.encode())
                f.close()
Ensure that the README is in sync with the docstring.
dataset/ETHPy150Open rfk/git-remote-hg/git_remote_hg/test.py/TestDocstring.test_readme_matches_docstring