~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: 2006-08-30 17:08:52 UTC
  • mto: (1711.9.13 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1978.
  • Revision ID: v.ladeuil@alplog.fr-20060830170852-dca26398e3c1c915
Fix Aaron's second review remarks.

* bzrlib/tests/test_transport_implementations.py:
(TransportTests.test_rmdir): Test that rmdir raise PathError
instead of testing 'has' which is tested elsewhere. I would have
prefered testing NoSuchFile but ftp tests failed (ftp can't
reliably gives a NoSuchFile exception).

Show diffs side-by-side

added added

removed removed

Lines of Context:
543
543
        t.mkdir('adir')
544
544
        t.mkdir('adir/bdir')
545
545
        t.rmdir('adir/bdir')
546
 
        self.assertFalse(t.has('adir/bdir'))
 
546
        self.assertRaises(PathError, t.rmdir, 'adir/bdir')
547
547
        t.rmdir('adir')
548
 
        self.assertFalse(t.has('adir'))
 
548
        self.assertRaises(PathError, t.rmdir, 'adir')
549
549
 
550
550
    def test_rmdir_not_empty(self):
551
551
        """Deleting a non-empty directory raises an exception