/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

(lifeless) Fix standalone code blocks in help. (John Szakmeister)

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()
135
141
            '    Example 2:\n'
136
142
            '\n'
137
143
            '        cmd arg2\n'
 
144
            '\n'
 
145
            '    A code block follows.\n'
 
146
            '\n'
 
147
            '        bzr Demo something\n'
138
148
            '\n')
139
149
        helptext = cmd.get_help_text(plain=False)
140
150
        self.assertEquals(helptext,
156
166
            '    Example 2::\n'
157
167
            '\n'
158
168
            '        cmd arg2\n'
 
169
            '\n'
 
170
            '    A code block follows.\n'
 
171
            '\n'
 
172
            '    ::\n'
 
173
            '\n'
 
174
            '        bzr Demo something\n'
159
175
            '\n')
160
176
 
161
177
    def test_concise_help_text(self):