~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-23 23:32:35 UTC
  • mfrom: (5240.1.2 bash_completion-README)
  • Revision ID: pqm@pqm.ubuntu.com-20100523233235-74zov83erd9cnhor
(lifeless) Adjusted README.txt for bash_completion plugin,
 now that the plugin has been merged with the main tree. (Martin von Gagern)

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')
227
229
                r.get_apparent_author)
228
230
        self.assertEqual('C', author)
229
231
 
 
232
    def test_get_apparent_author_none(self):
 
233
        r = revision.Revision('1')
 
234
        author = self.applyDeprecated(
 
235
                symbol_versioning.deprecated_in((1, 13, 0)),
 
236
                r.get_apparent_author)
 
237
        self.assertEqual(None, author)
 
238
 
230
239
    def test_get_apparent_authors(self):
231
240
        r = revision.Revision('1')
232
241
        r.committer = 'A'
236
245
        r.properties['authors'] = 'C\nD'
237
246
        self.assertEqual(['C', 'D'], r.get_apparent_authors())
238
247
 
 
248
    def test_get_apparent_authors_no_committer(self):
 
249
        r = revision.Revision('1')
 
250
        self.assertEqual([], r.get_apparent_authors())
 
251
 
239
252
 
240
253
class TestRevisionBugs(TestCase):
241
254
    """Tests for getting the bugs that a revision is linked to."""