~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

Classify request.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1467
1467
        branch = self.make_branch('.', format='2a')
1468
1468
        response = request.execute('', 'True')
1469
1469
        self.assertEqual(
1470
 
            smart_req.SmartServerResponse(('ok', )), response)
1471
 
        branch.unlock()
 
1470
            smart_req.SmartServerResponse(
 
1471
                ('Bazaar-NG meta directory, format 1\n',
 
1472
                 'Bazaar repository format 2a (needs bzr 1.16 or later)\n',
 
1473
                 'Bazaar Branch Format 7 (needs bzr 1.6)\n')),
 
1474
            response)
1472
1475
 
1473
1476
    def test_heavyweight(self):
1474
1477
        backing = self.get_transport()
1477
1480
        branch = self.make_branch('.', format='2a')
1478
1481
        response = request.execute('', 'False')
1479
1482
        self.assertEqual(
1480
 
            smart_req.SmartServerResponse(('ok', )), response)
1481
 
        branch.unlock()
 
1483
            smart_req.SmartServerResponse((
 
1484
                'Bazaar-NG meta directory, format 1\n',
 
1485
                'Bazaar repository format 2a (needs bzr 1.16 or later)\n',
 
1486
                'Bazaar Branch Format 7 (needs bzr 1.6)\n')),
 
1487
            response)
1482
1488
 
1483
1489
 
1484
1490
class TestSmartServerBranchRequestUnlock(TestLockedBranch):