~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.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:
93
93
    def test_get_error_unexpected(self):
94
94
        """Error reported by server with no specific representation"""
95
95
        class FlakyTransport(object):
96
 
            def get(self, path):
 
96
            def get_bytes(self, path):
97
97
                raise Exception("some random exception from inside server")
98
98
        server = smart.SmartTCPServer(backing_transport=FlakyTransport())
99
99
        server.start_background_thread()