~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Robert Collins
  • Date: 2009-04-20 04:19:45 UTC
  • mto: This revision was merged to the branch mainline in revision 4304.
  • Revision ID: robertc@robertcollins.net-20090420041945-qvim67wg99c3euki
Move directory checking for bzr push options into Branch.create_clone_on_transport.

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