Mercurial > public > mercurial-scm > python-hglib
diff tests/test-push.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 | 0555d58a7313 |
children | c1b966866ed7 |
line wrap: on
line diff
--- a/tests/test-push.py Sun Mar 08 13:08:37 2015 -0400 +++ b/tests/test-push.py Mon Mar 09 18:26:25 2015 -0400 @@ -1,18 +1,19 @@ import common, hglib +from hglib.util import b class test_push(common.basetest): def test_basic(self): self.append('a', 'a') - self.client.commit('first', addremove=True) + self.client.commit(b('first'), addremove=True) - self.client.clone(dest='other') - other = hglib.open('other') + self.client.clone(dest=b('other')) + other = hglib.open(b('other')) # broken in hg, doesn't return 1 if nothing to push #self.assertFalse(self.client.push('other')) self.append('a', 'a') - self.client.commit('second') + self.client.commit(b('second')) - self.assertTrue(self.client.push('other')) + self.assertTrue(self.client.push(b('other'))) self.assertEquals(self.client.log(), other.log())