~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Mark Hammond
  • Date: 2008-12-28 05:21:23 UTC
  • mfrom: (3920 +trunk)
  • mto: (3932.1.1 prepare-1.11)
  • mto: This revision was merged to the branch mainline in revision 3937.
  • Revision ID: mhammond@skippinet.com.au-20081228052123-f78xs5sbdkotshwf
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
                   [(10, 10), (20, 10), (30, 50), (80, 100)],
226
226
                  )
227
227
 
 
228
    def test_coalesce_default_limit(self):
 
229
        # By default we use a 100MB max size.
 
230
        ten_mb = 10*1024*1024
 
231
        self.check([(0, 10*ten_mb, [(i*ten_mb, ten_mb) for i in range(10)]),
 
232
                    (10*ten_mb, ten_mb, [(0, ten_mb)])],
 
233
                   [(i*ten_mb, ten_mb) for i in range(11)])
 
234
        self.check([(0, 11*ten_mb, [(i*ten_mb, ten_mb) for i in range(11)]),],
 
235
                   [(i*ten_mb, ten_mb) for i in range(11)],
 
236
                   max_size=1*1024*1024*1024)
 
237
 
228
238
 
229
239
class TestMemoryTransport(TestCase):
230
240