~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

MergeĀ fromĀ old-hpss-branch-implementation-test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2932
2932
        self.assertEqual([], medium._expected_events)
2933
2933
        # Also, the v3 works then the server should be assumed to support RPCs
2934
2934
        # introduced in 1.6.
2935
 
        self.assertTrue(medium._is_remote_at_least((1, 6)))
 
2935
        self.assertFalse(medium._is_remote_before((1, 6)))
2936
2936
 
2937
2937
    def test_version_two_server(self):
2938
2938
        """If the server only speaks protocol 2, the client will first try
2973
2973
 
2974
2974
        # Also, because v3 is not supported, the client medium should assume
2975
2975
        # that RPCs introduced in 1.6 aren't supported either.
2976
 
        self.assertFalse(medium._is_remote_at_least((1, 6)))
 
2976
        self.assertTrue(medium._is_remote_before((1, 6)))
2977
2977
 
2978
2978
    def test_unknown_version(self):
2979
2979
        """If the server does not use any known (or at least supported)