diff tests/test-pull.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 238efe4fd7db
children c1b966866ed7
line wrap: on
line diff
--- a/tests/test-pull.py	Sun Mar 08 13:08:37 2015 -0400
+++ b/tests/test-pull.py	Mon Mar 09 18:26:25 2015 -0400
@@ -1,29 +1,30 @@
 import common, hglib
+from hglib.util import b
 
 class test_pull(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'))
 
         self.append('a', 'a')
-        self.client.commit('second')
+        self.client.commit(b('second'))
 
         self.assertTrue(other.pull())
         self.assertEquals(self.client.log(), other.log())
 
     def test_unresolved(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'))
 
         self.append('a', 'a')
-        self.client.commit('second')
+        self.client.commit(b('second'))
 
         self.append('other/a', 'b')
         self.assertFalse(other.pull(update=True))
-        self.assertTrue(('M', 'a') in other.status())
+        self.assertTrue((b('M'), b('a')) in other.status())