comparison 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
comparison
equal deleted inserted replaced
142:fe74d5599539 143:4359cabcb0cc
1 import common, hglib 1 import common, hglib
2 from hglib.util import b
2 3
3 class test_push(common.basetest): 4 class test_push(common.basetest):
4 def test_basic(self): 5 def test_basic(self):
5 self.append('a', 'a') 6 self.append('a', 'a')
6 self.client.commit('first', addremove=True) 7 self.client.commit(b('first'), addremove=True)
7 8
8 self.client.clone(dest='other') 9 self.client.clone(dest=b('other'))
9 other = hglib.open('other') 10 other = hglib.open(b('other'))
10 11
11 # broken in hg, doesn't return 1 if nothing to push 12 # broken in hg, doesn't return 1 if nothing to push
12 #self.assertFalse(self.client.push('other')) 13 #self.assertFalse(self.client.push('other'))
13 14
14 self.append('a', 'a') 15 self.append('a', 'a')
15 self.client.commit('second') 16 self.client.commit(b('second'))
16 17
17 self.assertTrue(self.client.push('other')) 18 self.assertTrue(self.client.push(b('other')))
18 self.assertEquals(self.client.log(), other.log()) 19 self.assertEquals(self.client.log(), other.log())