Mercurial > python-hglib
view tests/test-init.py @ 78:031cbb8d4f65
examples: add simple stat-gathering example
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 09 Nov 2011 14:07:29 -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'))