Mercurial > python-hglib
diff tests/test-log.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 | 1b47146a4a2c |
children | c1b966866ed7 |
line wrap: on
line diff
--- a/tests/test-log.py Sun Mar 08 13:08:37 2015 -0400 +++ b/tests/test-log.py Mon Mar 09 18:26:25 2015 -0400 @@ -1,12 +1,13 @@ import common import hglib +from hglib.util import b class test_log(common.basetest): def test_basic(self): self.append('a', 'a') - rev0, node0 = self.client.commit('first', addremove=True) + rev0, node0 = self.client.commit(b('first'), addremove=True) self.append('a', 'a') - rev1, node1 = self.client.commit('second') + rev1, node1 = self.client.commit(b('second')) revs = self.client.log() revs.reverse() @@ -14,8 +15,8 @@ self.assertTrue(len(revs) == 2) self.assertEquals(revs[1].node, node1) - self.assertEquals(revs[0], self.client.log('0')[0]) - self.assertEquals(self.client.log(), self.client.log(files=['a'])) + self.assertEquals(revs[0], self.client.log(b('0'))[0]) + self.assertEquals(self.client.log(), self.client.log(files=[b('a')])) self.assertEquals(self.client.log(), self.client.log(hidden=True))