annotate tests/test-remove.py @ 128:838c5a91ed44

tests: skip test using assertIn on Python < 2.7
author Matt Mackall <mpm@selenic.com>
date Thu, 31 Jul 2014 15:30:51 -0500
parents b7042bb3dbfd
children 4359cabcb0cc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
1 import common
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
2
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
3 class test_remove(common.basetest):
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
4 def test_basic(self):
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
5 self.append('a', 'a')
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
6 self.client.commit('first', addremove=True)
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
7 self.assertTrue(self.client.remove(['a']))
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
8
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
9 def test_warnings(self):
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
10 self.append('a', 'a')
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
11 self.client.commit('first', addremove=True)
b7042bb3dbfd client: add remove command
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
12 self.assertFalse(self.client.remove(['a', 'b']))