/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: Vincent Ladeuil
  • Date: 2010-01-25 17:48:22 UTC
  • mto: (4987.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100125174822-nce4l19sbwx83jvq
Deploying the new overrideAttr facility further reduces the complexity
and make the code clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
 
313
313
    def set_vendor(self, vendor):
314
314
        from bzrlib.transport import ssh
315
 
        self.addAttrCleanup(ssh._ssh_vendor_manager, '_cached_ssh_vendor')
316
 
        ssh._ssh_vendor_manager._cached_ssh_vendor = vendor
 
315
        self.overrideAttr(ssh._ssh_vendor_manager, '_cached_ssh_vendor', vendor)
317
316
 
318
317
    def test_bad_connection_paramiko(self):
319
318
        """Test that a real connection attempt raises the right error"""