~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Vincent Ladeuil
  • Date: 2008-09-11 19:36:38 UTC
  • mfrom: (3703 +trunk)
  • mto: (3705.1.1 trunk2)
  • mto: This revision was merged to the branch mainline in revision 3708.
  • Revision ID: v.ladeuil+lp@free.fr-20080911193638-wtjyc1kcmacc6t1f
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1252
1252
        self.failIf(t3.has('b/d'))
1253
1253
 
1254
1254
        if t1.is_readonly():
1255
 
            open('b/d', 'wb').write('newfile\n')
 
1255
            self.build_tree_contents([('b/d', 'newfile\n')])
1256
1256
        else:
1257
1257
            t2.put_bytes('d', 'newfile\n')
1258
1258
 
1546
1546
        content = osutils.rand_bytes(200*1024)
1547
1547
        content_size = len(content)
1548
1548
        if transport.is_readonly():
1549
 
            file('a', 'w').write(content)
 
1549
            self.build_tree_contents([('a', content)])
1550
1550
        else:
1551
1551
            transport.put_bytes('a', content)
1552
1552
        def check_result_data(result_vector):