Mercurial > python-hglib
comparison tests/test_remove.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-remove.py@c1b966866ed7 |
children |
comparison
equal
deleted
inserted
replaced
218:934608d4fcba | 219:8341f2494b3f |
---|---|
1 from tests import common | |
2 from hglib.util import b | |
3 | |
4 class test_remove(common.basetest): | |
5 def test_basic(self): | |
6 self.append('a', 'a') | |
7 self.client.commit(b('first'), addremove=True) | |
8 self.assertTrue(self.client.remove([b('a')])) | |
9 | |
10 def test_warnings(self): | |
11 self.append('a', 'a') | |
12 self.client.commit(b('first'), addremove=True) | |
13 self.assertFalse(self.client.remove([b('a'), b('b')])) |