comparison 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
comparison
equal deleted inserted replaced
142:fe74d5599539 143:4359cabcb0cc
1 import common 1 import common
2 from hglib.util import b
2 3
3 class test_parents(common.basetest): 4 class test_parents(common.basetest):
4 def test_noparents(self): 5 def test_noparents(self):
5 self.assertEquals(self.client.parents(), None) 6 self.assertEquals(self.client.parents(), None)
6 7
7 def test_basic(self): 8 def test_basic(self):
8 self.append('a', 'a') 9 self.append('a', 'a')
9 rev, node = self.client.commit('first', addremove=True) 10 rev, node = self.client.commit(b('first'), addremove=True)
10 self.assertEquals(node, self.client.parents()[0].node) 11 self.assertEquals(node, self.client.parents()[0].node)
11 self.assertEquals(node, self.client.parents(file='a')[0].node) 12 self.assertEquals(node, self.client.parents(file=b('a'))[0].node)
12 13
13 def test_two_parents(self): 14 def test_two_parents(self):
14 pass 15 pass