diff tests/test-forget.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 ee8863882aae
children c1b966866ed7
line wrap: on
line diff
--- a/tests/test-forget.py	Sun Mar 08 13:08:37 2015 -0400
+++ b/tests/test-forget.py	Mon Mar 09 18:26:25 2015 -0400
@@ -1,13 +1,14 @@
 import common
+from hglib.util import b
 
 class test_forget(common.basetest):
     def test_basic(self):
         self.append('a', 'a')
-        self.client.add(['a'])
-        self.assertTrue(self.client.forget('a'))
+        self.client.add([b('a')])
+        self.assertTrue(self.client.forget(b('a')))
 
     def test_warnings(self):
-        self.assertFalse(self.client.forget('a'))
+        self.assertFalse(self.client.forget(b('a')))
         self.append('a', 'a')
-        self.client.add(['a'])
-        self.assertFalse(self.client.forget(['a', 'b']))
+        self.client.add([b('a')])
+        self.assertFalse(self.client.forget([b('a'), b('b')]))