113
113
self.assertTrue('rocks' not in commands)
115
115
def test_help_concise(self):
116
dash_h = self.run_bzr('commit -h')[0]
117
help_x = self.run_bzr('help commit')[0]
118
self.assertEqualDiff(dash_h, help_x)
116
dash_h = self.run_bzr('diff -h')[0]
117
self.assertContainsRe(dash_h, "Purpose:")
118
self.assertContainsRe(dash_h, "Usage:")
119
self.assertContainsRe(dash_h, "Options:")
120
self.assertNotContainsRe(dash_h, "Description:")
121
self.assertNotContainsRe(dash_h, "Examples:")
122
self.assertContainsRe(dash_h, "See also:")
123
self.assertContainsRe(dash_h, "Aliases:")
120
125
def test_help_detail(self):
121
dash_h = self.run_bzr('commit -h -v')[0]
122
help_x = self.run_bzr('help -v commit')[0]
123
self.assertEqualDiff(dash_h, help_x)
126
help_x = self.run_bzr('help diff')[0]
127
self.assertContainsRe(help_x, "Purpose:")
128
self.assertContainsRe(help_x, "Usage:")
129
self.assertContainsRe(help_x, "Options:")
130
self.assertContainsRe(help_x, "Description:")
131
self.assertContainsRe(help_x, "Examples:")
132
self.assertContainsRe(help_x, "See also:")
133
self.assertContainsRe(help_x, "Aliases:")
125
135
def test_help_help(self):
126
136
help = self.run_bzr('help help')[0]