/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-12 01:45:56 UTC
  • mfrom: (7513.1.2 pypy3)
  • Revision ID: breezy.the.bot@gmail.com-20200612014556-tsc8assk3d0luziu
Avoid deprecated behaviour in ElementTree.

Merged from https://code.launchpad.net/~jelmer/brz/pypy3/+merge/385611

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
 
 
22
20
from ...revision import (
23
21
    Revision,
24
22
    )
443
441
                         fix_person_identifier(b"bar@blah.nl"))
444
442
 
445
443
    def test_fix(self):
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>"))
 
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'))
450
453
        self.assertRaises(ValueError,
451
454
                          fix_person_identifier, b"person >bar@blah.nl<")