~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.py

  • Committer: jszakmeister
  • Date: 2009-06-03 10:24:28 UTC
  • mto: (4493.1.1 empty-message-summary)
  • mto: This revision was merged to the branch mainline in revision 4495.
  • Revision ID: john@szakmeister.net-20090603102428-2wh3h03otxt4hdvv
Make Revision.get_summary() return an empty string when Revision.message is None, instead of backtracing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
        self.assertEqual('a', r.get_summary())
209
209
        r.message = '\na\nb'
210
210
        self.assertEqual('a', r.get_summary())
 
211
        r.message = None
 
212
        self.assertEqual('', r.get_summary())
211
213
 
212
214
    def test_get_apparent_author(self):
213
215
        r = revision.Revision('1')