~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

Merge cleanup into texinfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
                Example 2::
113
113
 
114
114
                    cmd arg2
 
115
 
 
116
                A code block follows.
 
117
 
 
118
                ::
 
119
 
 
120
                    bzr Demo something
115
121
            """
116
122
        cmd = cmd_Demo()
117
123
        helptext = cmd.get_help_text()
134
140
            '    Example 2:\n'
135
141
            '\n'
136
142
            '        cmd arg2\n'
 
143
            '\n'
 
144
            '    A code block follows.\n'
 
145
            '\n'
 
146
            '        bzr Demo something\n'
137
147
            '\n')
138
148
        helptext = cmd.get_help_text(plain=False)
139
149
        self.assertEquals(helptext,
154
164
            '    Example 2::\n'
155
165
            '\n'
156
166
            '        cmd arg2\n'
 
167
            '\n'
 
168
            '    A code block follows.\n'
 
169
            '\n'
 
170
            '    ::\n'
 
171
            '\n'
 
172
            '        bzr Demo something\n'
157
173
            '\n')
158
174
 
159
175
    def test_concise_help_text(self):