# HG changeset patch # User Drew Gottlieb # Date 2015-04-07 22:16:19 # Node ID 29c238e4a58a8da69db802db63b74230fbb1a853 # Parent 528ace39c85c4bd6b85248bb849a255ae0f9cac8 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. diff --git a/tests/test-manifest.py b/tests/test-manifest.py --- a/tests/test-manifest.py +++ b/tests/test-manifest.py @@ -460,5 +460,9 @@ class testmanifestdict(unittest.TestCase 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__)