Mercurial > python-hglib
view tests/test-parents.py @ 143:4359cabcb0cc
hglib: move string literals in the test code to util.b() (issue4520)
author | Brett Cannon <brett@python.org> |
---|---|
date | Mon, 09 Mar 2015 18:26:25 -0400 |
parents | 518149e32888 |
children | c1b966866ed7 |
line wrap: on
line source
import common from hglib.util import b class test_parents(common.basetest): def test_noparents(self): self.assertEquals(self.client.parents(), None) def test_basic(self): self.append('a', 'a') rev, node = self.client.commit(b('first'), addremove=True) self.assertEquals(node, self.client.parents()[0].node) self.assertEquals(node, self.client.parents(file=b('a'))[0].node) def test_two_parents(self): pass