Mercurial > python-hglib
view tests/test_init.py @ 227:484b56ac4aec default tip
hglib: cat accepts a template argument
author | Julien Cristau <jcristau@mozilla.com> |
---|---|
date | Mon, 17 Jun 2024 17:17:58 +0200 |
parents | 8341f2494b3f |
children |
line wrap: on
line source
from tests import common import hglib, shutil from hglib.util import b 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().open() self.assertTrue(self.client.root().endswith(b('test_init')))