~ubuntu-branches/debian/sid/bzr-builddeb/sid

« back to all changes in this revision

Viewing changes to tests/test_commit_message.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij, Jelmer Vernooij, Martin Packman
  • Date: 2011-10-01 21:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20111001212705-29f1lpwpsdb2dork
Tags: 2.7.9
[ Jelmer Vernooij ]
* Support .tar.xz Debian files rather than .tar.lzma.

[ Martin Packman ]
* Support non-ascii characters in changelog entry when determining
  commit message. LP: #853664

[ Jelmer Vernooij ]
* Use more complete control file during examples. Closes: #642818

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
        self.assertEqual(commit.builder._revprops, 
116
116
                        {'bugs': 'https://launchpad.net/bugs/1234 fixed\n'
117
117
                                 'https://launchpad.net/bugs/4321 fixed'})
 
118
 
 
119
    def test_set_message_returns_unicode(self):
 
120
        wt = self.make_branch_and_tree(".")
 
121
        self.build_tree(['a', 'debian/', 'debian/changelog'])
 
122
        wt.add(['debian/', 'debian/changelog'])
 
123
        wt.commit("one")
 
124
        self.set_changelog_content("  * \xe2\x80\xa6real fix this time\n")
 
125
        wt.add(['a'])
 
126
        wt.lock_read()
 
127
        self.addCleanup(wt.unlock)
 
128
        commit = self._Commit(wt)
 
129
        self.assertEqual(debian_changelog_commit(commit, None),
 
130
                u"\u2026real fix this time\n")