comparison tests/test_clone.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-clone.py@820d7c1e470a
children a2afbf236ca8
comparison
equal deleted inserted replaced
218:934608d4fcba 219:8341f2494b3f
1 import os
2 from tests import common
3 import hglib
4 from hglib.util import b
5
6 class test_clone(common.basetest):
7 def test_basic(self):
8 self.append('a', 'a')
9 self.client.commit(b('first'), addremove=True)
10 cloned = hglib.clone(b('.'), b('cloned'))
11 self.assertRaises(ValueError, cloned.log)
12 cloned.open()
13 self.assertEquals(self.client.log(), cloned.log())
14
15 def test_clone_uncompressed(self):
16 hglib.clone(b('.'), b('cloned'), uncompressed=True)