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

  • Committer: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from ..chk_serializer import (
 
17
from ..bzr.chk_serializer import (
18
18
    chk_bencode_serializer,
19
19
    )
20
 
from ...revision import (
 
20
from ..revision import (
21
21
    Revision,
22
22
    )
23
23
from . import TestCase
86
86
        self.assertEqual(None, rev.timezone)
87
87
 
88
88
    def assertRoundTrips(self, serializer, orig_rev):
89
 
        lines = serializer.write_revision_to_lines(orig_rev)
90
 
        new_rev = serializer.read_revision_from_string(b''.join(lines))
 
89
        text = serializer.write_revision_to_string(orig_rev)
 
90
        new_rev = serializer.read_revision_from_string(text)
91
91
        self.assertEqual(orig_rev, new_rev)
92
92
 
93
93
    def test_roundtrips_non_ascii(self):