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

  • Committer: Robert Collins
  • Date: 2008-02-05 22:07:57 UTC
  • mto: This revision was merged to the branch mainline in revision 3216.
  • Revision ID: robertc@robertcollins.net-20080205220757-p2j8klf0hwhzaim4
Change RemoteRepository.get_parent_map to use bz2 not gzip for compression.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
These tests correspond to tests.test_smart, which exercises the server side.
24
24
"""
25
25
 
 
26
import bz2
26
27
from cStringIO import StringIO
27
28
 
28
29
from bzrlib import (
46
47
from bzrlib.smart.client import _SmartClient
47
48
from bzrlib.transport.memory import MemoryTransport
48
49
from bzrlib.transport.remote import RemoteTransport
49
 
from bzrlib.tuned_gzip import bytes_to_gzip
50
50
 
51
51
 
52
52
class BasicRemoteObjectTests(tests.TestCaseWithTransport):
609
609
        r1 = u'\u0e33'.encode('utf8')
610
610
        r2 = u'\u0dab'.encode('utf8')
611
611
        lines = [' '.join([r2, r1]), r1]
612
 
        encoded_body = bytes_to_gzip('\n'.join(lines))
 
612
        encoded_body = bz2.compress('\n'.join(lines))
613
613
        responses = [(('ok', ), encoded_body), (('ok', ), encoded_body)]
614
614
 
615
615
        transport_path = 'quack'