Mercurial > public > mercurial-scm > python-hglib
comparison tests/test_init.py @ 219:8341f2494b3f
hglib tests: migrate away from (unmaintained) nose
author | Mathias De Mare <mathias.de_mare@nokia.com> |
---|---|
date | Wed, 08 Mar 2023 17:04:58 +0100 |
parents | tests/test-init.py@c1b966866ed7 |
children |
comparison
equal
deleted
inserted
replaced
218:934608d4fcba | 219:8341f2494b3f |
---|---|
1 from tests import common | |
2 import hglib, shutil | |
3 from hglib.util import b | |
4 | |
5 class test_init(common.basetest): | |
6 def test_exists(self): | |
7 self.assertRaises(hglib.error.CommandError, hglib.init) | |
8 | |
9 def test_basic(self): | |
10 self.client.close() | |
11 self.client = None | |
12 shutil.rmtree('.hg') | |
13 | |
14 self.client = hglib.init().open() | |
15 self.assertTrue(self.client.root().endswith(b('test_init'))) |