From: david-sarah Date: Wed, 19 Jan 2011 02:42:24 +0000 (-0800) Subject: src/allmydata/test/test_cli.py: add test for 'tahoe debug trial' options help. refs... X-Git-Tag: allmydata-tahoe-1.8.2b1~44 X-Git-Url: https://git.rkrishnan.org/%5B/frontends/statistics?a=commitdiff_plain;h=8f0af33ba6cf4f4a3530d887407888c11c7d4ba9;p=tahoe-lafs%2Ftahoe-lafs.git src/allmydata/test/test_cli.py: add test for 'tahoe debug trial' options help. refs #1296 --- diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index 560c6759..46527f72 100644 --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -504,6 +504,11 @@ class Help(unittest.TestCase): help = str(cli.AddAliasOptions()) self.failUnless("add-alias ALIAS[:] DIRCAP" in help, help) + def test_debug_trial(self): + help = str(debug.TrialOptions()) + self.failUnless("debug trial [options] [[file|package|module|TestCase|testmethod]...]" in help, help) + self.failUnless("The 'tahoe debug trial' command uses the correct imports" in help, help) + class CreateAlias(GridTestMixin, CLITestMixin, unittest.TestCase):