/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_testament.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-16 16:55:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1938.
  • Revision ID: john@arbash-meinel.com-20060816165554-67f4050c9e751ab9
Avoid needless encode/decode. Only encode at the boundary (as suggested by hpk)

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
            timestamp=1129025493,
136
136
            timezone=36000,
137
137
            rev_id='test@user-3',
138
 
            committer='test@user')
 
138
            committer='Erik B\xe5gfors <test@user>',
 
139
            revprops={'uni':u'\xb5'}
 
140
            )
139
141
        t = Testament.from_revision(self.b.repository, 'test@user-3')
140
142
        self.assertEqualDiff(
141
143
            SAMPLE_UNICODE_TESTAMENT.encode('utf-8'), t.as_text())
298
300
SAMPLE_UNICODE_TESTAMENT = u"""\
299
301
bazaar-ng testament version 1
300
302
revision-id: test@user-3
301
 
committer: test@user
 
303
committer: Erik B\xe5gfors <test@user>
302
304
timestamp: 1129025493
303
305
timezone: 36000
304
306
parents:
312
314
properties:
313
315
  branch-nick:
314
316
    test branch
 
317
  uni:
 
318
    \xb5
315
319
"""