~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: 2006-09-15 12:31:16 UTC
  • mto: (1752.2.84 remote bzrdir)
  • mto: This revision was merged to the branch mainline in revision 2015.
  • Revision ID: robertc@robertcollins.net-20060915123116-2151853564521d8f
Fix up all tests to pass, remove a couple more deprecated function calls, and break the dependency on sftp for the smart transport.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        self.check_transport_contents('file-like\ncontents\n', t, 'b')
146
146
 
147
147
        self.assertRaises(NoSuchFile,
148
 
                          t.put, 'path/doesnt/exist/c', StringIO('contents'))
 
148
            self.applyDeprecated,
 
149
            zero_eleven,
 
150
            t.put, 'path/doesnt/exist/c', StringIO('contents'))
149
151
 
150
152
    def test_put_bytes(self):
151
153
        t = self.get_transport()
1234
1236
            self.assertRaises(TransportNotPossible, transport.lock_write, 'foo')
1235
1237
            return
1236
1238
        transport.put_bytes('lock', '')
1237
 
        transport.put('lock', StringIO())
1238
1239
        try:
1239
1240
            lock = transport.lock_write('lock')
1240
1241
        except TransportNotPossible: