~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_help.py

  • Committer: Robert Collins
  • Date: 2007-08-15 01:26:30 UTC
  • mfrom: (2698 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2741.
  • Revision ID: robertc@robertcollins.net-20070815012630-xqjtm5z2c4718n8s
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)
77
79
 
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)
82
86
 
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)
87
93
 
88
94
    def test_help_commands(self):
89
95
        dash_help  = self.run_bzr('--help commands')[0]