73
73
def test_help_repositories(self):
74
74
"""Smoke test for 'bzr help repositories'"""
75
75
out, err = self.run_bzr('help repositories')
76
self.assertEqual(bzrlib.help_topics._repositories, out)
76
from bzrlib.help_topics import help_as_plain_text, _repositories
77
expected = help_as_plain_text(_repositories)
78
self.assertEqual(expected, out)
78
80
def test_help_working_trees(self):
79
81
"""Smoke test for 'bzr help working-trees'"""
80
82
out, err = self.run_bzr('help working-trees')
81
self.assertEqual(bzrlib.help_topics._working_trees, out)
83
from bzrlib.help_topics import help_as_plain_text, _working_trees
84
expected = help_as_plain_text(_working_trees)
85
self.assertEqual(expected, out)
83
87
def test_help_status_flags(self):
84
88
"""Smoke test for 'bzr help status-flags'"""
85
89
out, err = self.run_bzr('help status-flags')
86
self.assertEqual(bzrlib.help_topics._status_flags, out)
90
from bzrlib.help_topics import help_as_plain_text, _status_flags
91
expected = help_as_plain_text(_status_flags)
92
self.assertEqual(expected, out)
88
94
def test_help_commands(self):
89
95
dash_help = self.run_bzr('--help commands')[0]