Mercurial > public > mercurial-scm > python-hglib
view tests/test-paths.py @ 106:7ce1c3b93414
Added tag 0.3 for changeset 86ff8611a8fa
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 01 Nov 2012 17:47:29 -0500 |
parents | eac8be119d81 |
children | e738d6fe5f3f |
line wrap: on
line source
import common, os import hglib class test_paths(common.basetest): def test_basic(self): open('.hg/hgrc', 'a').write('[paths]\nfoo = bar\n') # hgrc isn't watched for changes yet, have to reopen self.client = hglib.open() paths = self.client.paths() self.assertEquals(len(paths), 1) self.assertEquals(paths['foo'], os.path.abspath('bar')) self.assertEquals(self.client.paths('foo'), os.path.abspath('bar'))