/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: 2019-06-16 02:23:42 UTC
  • mfrom: (7340 work)
  • mto: This revision was merged to the branch mainline in revision 7350.
  • Revision ID: jelmer@jelmer.uk-20190616022342-ihxzayq04x5culzd
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
            mapping.revision_id_foreign_to_bzr(c.id),
240
240
            mapping.get_revision_id(c))
241
241
 
 
242
    def test_invalid_utf8(self):
 
243
        c = Commit()
 
244
        c.tree = b"cc9462f7f8263ef5adfbeff2fb936bb36b504cba"
 
245
        c.message = b"Some message \xc1"
 
246
        c.committer = b"Committer"
 
247
        c.commit_time = 4
 
248
        c.author_time = 5
 
249
        c.commit_timezone = 60 * 5
 
250
        c.author_timezone = 60 * 3
 
251
        c.author = b"Author"
 
252
        mapping = BzrGitMappingv1()
 
253
        self.assertEqual(
 
254
            mapping.revision_id_foreign_to_bzr(c.id),
 
255
            mapping.get_revision_id(c))
 
256
 
242
257
 
243
258
class RoundtripRevisionsFromBazaar(tests.TestCase):
244
259