Mercurial > public > mercurial-scm > python-hglib
comparison tests/test-remove.py @ 30:b7042bb3dbfd
client: add remove command
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sun, 14 Aug 2011 00:48:51 +0300 |
parents | |
children | 4359cabcb0cc |
comparison
equal
deleted
inserted
replaced
29:c072f525ea3e | 30:b7042bb3dbfd |
---|---|
1 import common | |
2 | |
3 class test_remove(common.basetest): | |
4 def test_basic(self): | |
5 self.append('a', 'a') | |
6 self.client.commit('first', addremove=True) | |
7 self.assertTrue(self.client.remove(['a'])) | |
8 | |
9 def test_warnings(self): | |
10 self.append('a', 'a') | |
11 self.client.commit('first', addremove=True) | |
12 self.assertFalse(self.client.remove(['a', 'b'])) |