test-manifest: add some test coverage for treemanifest
authorDrew Gottlieb <drgott@google.com>
Tue, 07 Apr 2015 15:16:19 -0700
changeset 24656 29c238e4a58a
parent 24655 528ace39c85c
child 24657 3d7c512b258d
test-manifest: add some test coverage for treemanifest Similar to the testmanifest test case, testtreemanifest extends the base test case but uses treemanifests instead of manifestdicts. Adding this test provides some basic test coverage of treemanifest within the standard test suite.
tests/test-manifest.py
--- a/tests/test-manifest.py	Tue Apr 07 15:16:19 2015 -0700
+++ b/tests/test-manifest.py	Tue Apr 07 15:16:19 2015 -0700
@@ -460,5 +460,9 @@
     def parsemanifest(self, text):
         return manifestmod.manifestdict(text)
 
+class testtreemanifest(unittest.TestCase, basemanifesttests):
+    def parsemanifest(self, text):
+        return manifestmod.treemanifest('', text)
+
 if __name__ == '__main__':
     silenttestrunner.main(__name__)