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

separate out the client medium from the client encoding protocol for the smart server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1311
1311
        self.assertEqual(d[2], (0, '0'))
1312
1312
        self.assertEqual(d[3], (3, '34'))
1313
1313
 
1314
 
    def test_get_smart_client(self):
1315
 
        """All transports must either give a smart client, or know they can't.
1316
 
 
1317
 
        For some transports such as http this might depend on probing to see 
1318
 
        what's actually present on the other end.  (But we can adjust for that 
1319
 
        in the future.)
1320
 
        """
1321
 
        transport = self.get_transport()
1322
 
        try:
1323
 
            client = transport.get_smart_client()
1324
 
            # XXX: should be a more general class
1325
 
            self.assertIsInstance(client, smart.SmartStreamClient)
1326
 
        except NoSmartServer:
1327
 
            # as long as we got it we're fine
1328
 
            pass
1329
 
 
1330
1314
    def test_get_smart_medium(self):
1331
1315
        """All transports must either give a smart medium, or know they can't.
1332
1316
        """