/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 breezy/git/tests/test_mapping.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 20:02:36 UTC
  • mto: (7490.7.7 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200322200236-fsbl91ktcn6fcbdd
Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests for mapping."""
19
19
 
 
20
from __future__ import absolute_import
 
21
 
20
22
from ...revision import (
21
23
    Revision,
22
24
    )
441
443
                         fix_person_identifier(b"bar@blah.nl"))
442
444
 
443
445
    def test_fix(self):
444
 
        self.assertEqual(
445
 
            b"person <bar@blah.nl>",
446
 
            fix_person_identifier(b"somebody <person <bar@blah.nl>>"))
447
 
        self.assertEqual(
448
 
            b"person <bar@blah.nl>",
449
 
            fix_person_identifier(b"person<bar@blah.nl>"))
450
 
        self.assertEqual(
451
 
            b'Rohan Garg <rohangarg@kubuntu.org>',
452
 
            fix_person_identifier(b'Rohan Garg <rohangarg@kubuntu.org'))
 
446
        self.assertEqual(b"person <bar@blah.nl>",
 
447
                         fix_person_identifier(b"somebody <person <bar@blah.nl>>"))
 
448
        self.assertEqual(b"person <bar@blah.nl>",
 
449
                         fix_person_identifier(b"person<bar@blah.nl>"))
453
450
        self.assertRaises(ValueError,
454
451
                          fix_person_identifier, b"person >bar@blah.nl<")