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

  • Committer: Sabin Iacob
  • Date: 2009-03-23 14:59:43 UTC
  • mto: (4189.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4193.
  • Revision ID: iacobs@m0n5t3r.info-20090323145943-3s3p1px5q1rkh2e5
update FSF mailing address

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
from bzrlib.deprecated_graph import Graph
33
33
from bzrlib.revision import (find_present_ancestors,
34
34
                             NULL_REVISION)
 
35
from bzrlib.symbol_versioning import one_three
35
36
from bzrlib.tests import TestCase, TestCaseWithTransport
36
37
from bzrlib.trace import mutter
37
38
from bzrlib.workingtree import WorkingTree
208
209
        self.assertEqual('a', r.get_summary())
209
210
        r.message = '\na\nb'
210
211
        self.assertEqual('a', r.get_summary())
211
 
        r.message = None
212
 
        self.assertEqual('', r.get_summary())
213
212
 
214
213
    def test_get_apparent_author(self):
215
214
        r = revision.Revision('1')
229
228
                r.get_apparent_author)
230
229
        self.assertEqual('C', author)
231
230
 
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
 
 
239
231
    def test_get_apparent_authors(self):
240
232
        r = revision.Revision('1')
241
233
        r.committer = 'A'
245
237
        r.properties['authors'] = 'C\nD'
246
238
        self.assertEqual(['C', 'D'], r.get_apparent_authors())
247
239
 
248
 
    def test_get_apparent_authors_no_committer(self):
249
 
        r = revision.Revision('1')
250
 
        self.assertEqual([], r.get_apparent_authors())
251
 
 
252
240
 
253
241
class TestRevisionBugs(TestCase):
254
242
    """Tests for getting the bugs that a revision is linked to."""