diff tests/test-summary.py @ 164:568bca4ff58e

tests: update test-summary for mercurial 3.5 changeset 1ef96a3b8b89 added some phases information to 'hg summary'. Reported at https://bugs.debian.org/797287
author Julien Cristau <julien.cristau@logilab.fr>
date Mon, 31 Aug 2015 09:52:34 +0200
parents c1b966866ed7
children dbb21a4c0eb9
line wrap: on
line diff
--- a/tests/test-summary.py	Fri Jul 31 12:20:22 2015 -0500
+++ b/tests/test-summary.py	Mon Aug 31 09:52:34 2015 +0200
@@ -19,6 +19,8 @@
              b('branch') : b('default'),
              b('commit') : True,
              b('update') : 0}
+        if self.client.version >= (3, 5):
+            d[b('phases')] = '1 draft'
 
         self.assertEquals(self.client.summary(), d)
 
@@ -31,6 +33,8 @@
              b('branch') : b('default'),
              b('commit') : False,
              b('update') : 0}
+        if self.client.version >= (3, 5):
+            d[b('phases')] = '1 draft'
 
         self.assertEquals(self.client.summary(), d)
 
@@ -45,6 +49,8 @@
              b('branch') : b('default'),
              b('commit') : True,
              b('update') : 1}
+        if self.client.version >= (3, 5):
+            d[b('phases')] = '2 draft'
 
         self.assertEquals(self.client.summary(), d)
 
@@ -90,6 +96,8 @@
         else:
             tags = b('tip')
         d[b('parent')] = [(1, node[:12], tags, b('second in other'))]
+        if self.client.version >= (3, 5):
+            d[b('phases')] = '1 draft'
 
         self.assertEquals(other.summary(remote=True), d)
 
@@ -111,5 +119,7 @@
              b('branch') : b('default'),
              b('commit') : False,
              b('update') : 0}
+        if self.client.version >= (3, 5):
+            d[b('phases')] = '3 draft'
 
         self.assertEquals(self.client.summary(), d)