Mercurial > public > mercurial-scm > python-hglib
view tests/test-remove.py @ 101:d1a42c1d0b61
tests: hook into hgclient.open for closing open cmdservers
So we ensure proper cleanup and cover all top level functions.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 18 Jan 2012 00:39:24 +0200 |
parents | b7042bb3dbfd |
children | 4359cabcb0cc |
line wrap: on
line source
import common class test_remove(common.basetest): def test_basic(self): self.append('a', 'a') self.client.commit('first', addremove=True) self.assertTrue(self.client.remove(['a'])) def test_warnings(self): self.append('a', 'a') self.client.commit('first', addremove=True) self.assertFalse(self.client.remove(['a', 'b']))