tests/test-manifest.py
changeset 24573 701d3554de0e
parent 24572 b83679eb5f86
child 24654 9d6db63ccf00
--- a/tests/test-manifest.py	Fri Mar 27 22:26:41 2015 -0700
+++ b/tests/test-manifest.py	Tue Mar 31 14:01:33 2015 -0700
@@ -146,6 +146,12 @@
         self.assertIn('bar/qux/foz.py', m)
         self.assertIn(256 * 'x' + '/x', m)
         self.assertIn(256 * 'x' + '/y', m)
+        self.assertEqual(A_STEM_COMPRESSED_MANIFEST, m.text(usemanifestv2=True))
+
+    def testTextV2(self):
+        m1 = parsemanifest(A_SHORT_MANIFEST)
+        v2text = m1.text(usemanifestv2=True)
+        self.assertEqual(A_SHORT_MANIFEST_V2, v2text)
 
     def testSetItem(self):
         want = BIN_HASH_1