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

merge hpss compatibility fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
            [('call', 'Transport.is_readonly', ())],
427
427
            client._calls)
428
428
 
 
429
    def test_error_from_old_0_11_server(self):
 
430
        """Same as test_error_from_old_server, but with the slightly different
 
431
        error message from bzr 0.11 servers.
 
432
        """
 
433
        client = FakeClient([(
 
434
            ('error', "Generic bzr smart protocol error: "
 
435
                      "bad request u'Transport.is_readonly'"), '')])
 
436
        transport = RemoteTransport('bzr://example.com/', medium=False,
 
437
                                    _client=client)
 
438
        self.assertEqual(False, transport.is_readonly())
 
439
        self.assertEqual(
 
440
            [('call', 'Transport.is_readonly', ())],
 
441
            client._calls)
 
442
 
429
443
 
430
444
class TestRemoteRepository(tests.TestCase):
431
445
    """Base for testing RemoteRepository protocol usage.