~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2012-01-06 22:44:57 UTC
  • mfrom: (6436 +trunk)
  • mto: (6437.3.11 2.5)
  • mto: This revision was merged to the branch mainline in revision 6444.
  • Revision ID: jelmer@samba.org-20120106224457-re0pcy0fz31xob77
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
 
21
 
from bzrlib.revision import NULL_REVISION
22
21
from bzrlib.tests import TestCaseWithTransport
23
22
from bzrlib.version_info_formats import VersionInfoBuilder
24
23
 
 
24
 
25
25
class TestVersionInfo(TestCaseWithTransport):
26
26
 
27
27
    def test_invalid_format(self):
163
163
 
164
164
    def test_non_ascii(self):
165
165
        """Test that we can output non-ascii data"""
166
 
        
 
166
 
167
167
        commit_message = u'Non-ascii message with character not in latin-1: \u1234'
168
 
        
 
168
 
169
169
        tree = self.make_branch_and_tree('.')
170
170
        self.build_tree(['a_file'])
171
171
        tree.add('a_file')
172
172
        tree.commit(commit_message)
173
173
        out, err = self.run_bzr(
174
174
            ['version-info', '--include-history'], encoding='latin-1')
175
 
        
 
175
 
176
176
        self.assertContainsString(out, commit_message.encode('utf-8'))
177
177
 
178
178
    def test_revision(self):