/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_smart_transport.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-15 17:27:46 UTC
  • mfrom: (6260 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6263.
  • Revision ID: jelmer@samba.org-20111115172746-bznns2ohiexp2g5q
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
359
359
            ],
360
360
            vendor.calls)
361
361
 
 
362
    def test_ssh_client_repr(self):
 
363
        client_medium = medium.SmartSSHClientMedium(
 
364
            'base', medium.SSHParams("example.com", "4242", "username"))
 
365
        self.assertEquals(
 
366
            "SmartSSHClientMedium(bzr+ssh://username@example.com:4242/)",
 
367
            repr(client_medium))
 
368
 
 
369
    def test_ssh_client_repr_no_port(self):
 
370
        client_medium = medium.SmartSSHClientMedium(
 
371
            'base', medium.SSHParams("example.com", None, "username"))
 
372
        self.assertEquals(
 
373
            "SmartSSHClientMedium(bzr+ssh://username@example.com/)",
 
374
            repr(client_medium))
 
375
 
 
376
    def test_ssh_client_repr_no_username(self):
 
377
        client_medium = medium.SmartSSHClientMedium(
 
378
            'base', medium.SSHParams("example.com", None, None))
 
379
        self.assertEquals(
 
380
            "SmartSSHClientMedium(bzr+ssh://example.com/)",
 
381
            repr(client_medium))
 
382
 
362
383
    def test_ssh_client_ignores_disconnect_when_not_connected(self):
363
384
        # Doing a disconnect on a new (and thus unconnected) SSH medium
364
385
        # does not fail.  It's ok to disconnect an unconnected medium.