~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-31 19:39:37 UTC
  • mfrom: (6110.3.2 nosuchfile)
  • Revision ID: pqm@pqm.ubuntu.com-20110831193937-tl38nsd3y1pe8s3w
(jelmer) Properly translate IOErrors from open_file in
 LocalTransport.open_write_stream. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
760
760
            self.assertEquals(f.read(), 'foo')
761
761
        self.assertEquals(len(calls), 1, calls)
762
762
 
 
763
    def test_missing_directory(self):
 
764
        t = self.get_transport('.')
 
765
        self.assertRaises(errors.NoSuchFile, t.open_write_stream, 'dir/foo')
 
766
 
763
767
 
764
768
class TestWin32LocalTransport(tests.TestCase):
765
769