~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-27 06:47:50 UTC
  • mfrom: (4294.2.12 push.roundtrips)
  • Revision ID: pqm@pqm.ubuntu.com-20090427064750-e9obd6h83omt86ps
(robertc) Reduce roundtrips needed to push a new branch by coalescing
        many steps of the initialisation process. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
674
674
            for f in files:
675
675
                self.assertTransportMode(temp_transport, f, mode)
676
676
 
 
677
    def test_create_prefix(self):
 
678
        t = self.get_transport()
 
679
        sub = t.clone('foo').clone('bar')
 
680
        try:
 
681
            sub.create_prefix()
 
682
        except TransportNotPossible:
 
683
            self.assertTrue(t.is_readonly())
 
684
        else:
 
685
            self.assertTrue(t.has('foo/bar'))
 
686
 
677
687
    def test_append_file(self):
678
688
        t = self.get_transport()
679
689