annotate tests/test-remove.py @ 90:b894c2222dff
client: replace usage of namedtuple for python 2.4 compatibility
author |
Idan Kamara <idankk86@gmail.com> |
date |
Thu, 22 Dec 2011 19:12:39 +0200 |
parents |
b7042bb3dbfd |
children |
4359cabcb0cc |
rev |
line source |
30
|
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']))
|