def test_changeVersionInFile(self):
        # The version numbers are arbitrary, the name is only kind of
        # arbitrary.
        packageName = 'foo'
        oldVersion = Version(packageName, 2, 5, 0)
        file = self.makeFile('README',
                             "Hello and welcome to %s." % oldVersion.base())

        newVersion = Version(packageName, 7, 6, 0)
        _changeVersionInFile(oldVersion, newVersion, file.path)

        self.assertEqual(file.getContent(),
                         "Hello and welcome to %s." % newVersion.base())
Return the first or only value when given a request.vars-style key.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_release.py/ChangeVersionTest.test_changeVersionInFile--crossover with--dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/storage.py/Storage.getfirst