Files
firefox/third_party/python/python-hglib/tests/test-forget.py
T

15 lines
439 B
Python

from tests import common
from hglib.util import b
class test_forget(common.basetest):
def test_basic(self):
self.append('a', 'a')
self.client.add([b('a')])
self.assertTrue(self.client.forget(b('a')))
def test_warnings(self):
self.assertFalse(self.client.forget(b('a')))
self.append('a', 'a')
self.client.add([b('a')])
self.assertFalse(self.client.forget([b('a'), b('b')]))