Mercurial > python-hglib
view tests/test-init.py @ 85:bfd1c264f6cb
Added signature for changeset c41442cb355d
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 10 Nov 2011 17:45:57 -0600 |
parents | ce516ed9bc0d |
children | 07efbd3bd09a |
line wrap: on
line source
import hglib, common, shutil class test_init(common.basetest): def test_exists(self): self.assertRaises(hglib.error.CommandError, hglib.init) def test_basic(self): self.client.close() self.client = None shutil.rmtree('.hg') self.client = hglib.init() self.assertTrue(self.client.root().endswith('test_init'))