~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

Various cosmetic changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
        t.mkdir('adir/asubdir')
580
580
        t.mkdir('bdir')
581
581
        t.mkdir('bdir/bsubdir')
 
582
        # any kind of PathError would be OK, though we normally expect
 
583
        # DirectoryNotEmpty
582
584
        self.assertRaises(PathError, t.rename, 'bdir', 'adir')
583
585
        # nothing was changed so it should still be as before
584
586
        self.assertTrue(t.has('bdir/bsubdir'))
669
671
        # TODO: test copy_multi
670
672
 
671
673
    def test_connection_error(self):
672
 
        """ConnectionError is raised when connection is impossible"""
 
674
        """ConnectionError is raised when connection is impossible.
 
675
        
 
676
        The error may be raised from either the constructor or the first
 
677
        operation on the transport.
 
678
        """
673
679
        try:
674
680
            url = self._server.get_bogus_url()
675
681
        except NotImplementedError: