/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/tests/test_versionedfile.py

  • Committer: Jelmer Vernooij
  • Date: 2020-05-24 00:39:50 UTC
  • mto: This revision was merged to the branch mainline in revision 7504.
  • Revision ID: jelmer@jelmer.uk-20200524003950-bbc545r76vc5yajg
Add github action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for VersionedFile classes"""
18
18
 
19
 
from ... import (
 
19
from .. import (
20
20
    errors,
21
21
    multiparent,
22
22
    tests,
23
23
    )
24
 
from .. import (
 
24
from ..bzr import (
25
25
    groupcompress,
26
26
    versionedfile,
27
27
    )
137
137
            multiparent.MultiParent([multiparent.NewText([b'first\n'])]),
138
138
            ]
139
139
        self.assertEqual(expected_diffs, diffs)
140
 
 
141
 
 
142
 
class ErrorTests(tests.TestCase):
143
 
 
144
 
    def test_unavailable_representation(self):
145
 
        error = versionedfile.UnavailableRepresentation(
146
 
            ('key',), "mpdiff", "fulltext")
147
 
        self.assertEqualDiff("The encoding 'mpdiff' is not available for key "
148
 
                             "('key',) which is encoded as 'fulltext'.",
149
 
                             str(error))