~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rio.py

fix tests relying on trailing whitespace by replacing it with \x20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
    def test_blank_line(self):
142
142
        s = Stanza(none='', one='\n', two='\n\n')
143
143
        self.assertEqualDiff(s.to_string(), """\
144
 
none:
145
 
one:
 
144
none:\x20
 
145
one:\x20
146
146
\t
147
 
two:
 
147
two:\x20
148
148
\t
149
149
\t
150
150
""")
154
154
    def test_whitespace_value(self):
155
155
        s = Stanza(space=' ', tabs='\t\t\t', combo='\n\t\t\n')
156
156
        self.assertEqualDiff(s.to_string(), """\
157
 
combo:
 
157
combo:\x20
158
158
\t\t\t
159
159
\t
160
 
space:
 
160
space:\x20\x20
161
161
tabs: \t\t\t
162
162
""")
163
163
        s2 = read_stanza(s.to_lines())
259
259
        tmpf.write('''\
260
260
s: "one"
261
261
 
262
 
s:
 
262
s:\x20
263
263
\t"one"
264
264
\t
265
265
 
269
269
 
270
270
s: """
271
271
 
272
 
s:
 
272
s:\x20
273
273
\t
274
274
 
275
275
s: \\
276
276
 
277
 
s:
 
277
s:\x20
278
278
\t\\
279
279
\t\\\\
280
280
\t