diff tests/test-bundle.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 29d01b5dc38c
children c1b966866ed7
line wrap: on
line diff
--- a/tests/test-bundle.py	Sun Mar 08 13:08:37 2015 -0400
+++ b/tests/test-bundle.py	Mon Mar 09 18:26:25 2015 -0400
@@ -1,17 +1,18 @@
 import common
+from hglib.util import b
 
 class test_bundle(common.basetest):
     def test_no_changes(self):
         self.append('a', 'a')
-        rev, node0 = self.client.commit('first', addremove=True)
-        self.assertFalse(self.client.bundle('bundle', destrepo='.'))
+        rev, node0 = self.client.commit(b('first'), addremove=True)
+        self.assertFalse(self.client.bundle(b('bundle'), destrepo=b('.')))
 
     def test_basic(self):
         self.append('a', 'a')
-        rev, node0 = self.client.commit('first', addremove=True)
-        self.client.clone(dest='other')
+        rev, node0 = self.client.commit(b('first'), addremove=True)
+        self.client.clone(dest=b('other'))
 
         self.append('a', 'a')
-        rev, node1 = self.client.commit('second')
+        rev, node1 = self.client.commit(b('second'))
 
-        self.assertTrue(self.client.bundle('bundle', destrepo='other'))
+        self.assertTrue(self.client.bundle(b('bundle'), destrepo=b('other')))