diff tests/test-update.py @ 34:f6e1d9a6e0cd

client: change return value of status() to a list of (code, file path)
author Idan Kamara <idankk86@gmail.com>
date Sun, 14 Aug 2011 00:51:15 +0300
parents 6a9d16ddae31
children a0328b08e028
line wrap: on
line diff
--- a/tests/test-update.py	Sun Aug 14 00:49:56 2011 +0300
+++ b/tests/test-update.py	Sun Aug 14 00:51:15 2011 +0300
@@ -24,7 +24,7 @@
         self.assertEquals(m, 0)
         self.assertEquals(r, 0)
         self.assertEquals(ur, 1)
-        self.assertEquals(self.client.status()['M'][0], 'a')
+        self.assertTrue(('M', 'a') in self.client.status())
 
     def test_merge(self):
         self.append('a', '\n\n\n\nb')
@@ -39,7 +39,7 @@
         self.assertEquals(m, 1)
         self.assertEquals(r, 0)
         self.assertEquals(ur, 0)
-        self.assertEquals(self.client.status()['M'][0], 'a')
+        self.assertEquals(self.client.status(), [('M', 'a')])
 
     def test_tip(self):
         self.client.update(self.rev0)