From 8f0af33ba6cf4f4a3530d887407888c11c7d4ba9 Mon Sep 17 00:00:00 2001 From: david-sarah <david-sarah@jacaranda.org> Date: Tue, 18 Jan 2011 18:42:24 -0800 Subject: [PATCH] src/allmydata/test/test_cli.py: add test for 'tahoe debug trial' options help. refs #1296 --- src/allmydata/test/test_cli.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- 2.45.2