annotate tests/test-remove.py @ 102:cc2b7540fa2b 0.2

tests: don't set the time zone There seems to be no need and it misbehaves on Windows.
author Idan Kamara <idankk86@gmail.com>
date Wed, 18 Jan 2012 00:39:25 +0200
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']))