]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
src/allmydata/test/test_cli.py: add test for 'tahoe debug trial' options help. refs...
authordavid-sarah <david-sarah@jacaranda.org>
Wed, 19 Jan 2011 02:42:24 +0000 (18:42 -0800)
committerdavid-sarah <david-sarah@jacaranda.org>
Wed, 19 Jan 2011 02:42:24 +0000 (18:42 -0800)
src/allmydata/test/test_cli.py

index 560c6759a81dbc30115051d4e6ca3d535aa243e1..46527f72fcd6957a6bb0b866a68e720964225310 100644 (file)
@@ -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):