don't update modification_date in repairing_mode (eg upgrade or shell)
""":organization: Logilab:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses"""fromcubicweb.devtools.testlibimportCubicWebTCfromcubicweb.etwist.serverimporthost_prefixed_baseurlclassHostPrefixedBaseURLTC(CubicWebTC):def_check(self,baseurl,host,waited):self.assertEquals(host_prefixed_baseurl(baseurl,host),waited,'baseurl %s called through host %s should be considered as %s'%(baseurl,host,waited))deftest1(self):self._check('http://www.cubicweb.org/hg/','code.cubicweb.org','http://code.cubicweb.org/hg/')deftest2(self):self._check('http://www.cubicweb.org/hg/','cubicweb.org','http://www.cubicweb.org/hg/')deftest3(self):self._check('http://cubicweb.org/hg/','code.cubicweb.org','http://code.cubicweb.org/hg/')deftest4(self):self._check('http://www.cubicweb.org/hg/','localhost','http://www.cubicweb.org/hg/')deftest5(self):self._check('http://www.cubicweb.org/cubes/','hg.code.cubicweb.org','http://hg.code.cubicweb.org/cubes/')deftest6(self):self._check('http://localhost:8080/hg/','code.cubicweb.org','http://localhost:8080/hg/')