comparison tests/test-forget.py @ 31:ee8863882aae

client: add forget command
author Idan Kamara <idankk86@gmail.com>
date Sun, 14 Aug 2011 00:49:15 +0300
parents
children 4359cabcb0cc
comparison
equal deleted inserted replaced
30:b7042bb3dbfd 31:ee8863882aae
1 import common
2
3 class test_forget(common.basetest):
4 def test_basic(self):
5 self.append('a', 'a')
6 self.client.add(['a'])
7 self.assertTrue(self.client.forget('a'))
8
9 def test_warnings(self):
10 self.assertFalse(self.client.forget('a'))
11 self.append('a', 'a')
12 self.client.add(['a'])
13 self.assertFalse(self.client.forget(['a', 'b']))