/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 breezy/tests/test_smart.py

  • Committer: Jelmer Vernooij
  • Date: 2020-05-06 02:13:25 UTC
  • mfrom: (7490.7.21 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200506021325-awbmmqu1zyorz7sj
Merge 3.1 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
485
485
            (b"success", ), local_result)
486
486
        self.assertEqual(expected, request.execute(b''))
487
487
 
 
488
    def test_ref(self):
 
489
        backing = self.get_transport()
 
490
        dir = self.make_controldir('foo')
 
491
        b = self.make_branch('bar')
 
492
        dir.set_branch_reference(b)
 
493
        request_class = smart_dir.SmartServerBzrDirRequestGetBranches
 
494
        request = request_class(backing)
 
495
        local_result = bencode.bencode(
 
496
            {b"": (b"ref", b'../bar/')})
 
497
        expected = smart_req.SuccessfulSmartServerResponse(
 
498
            (b"success", ), local_result)
 
499
        self.assertEqual(expected, request.execute(b'foo'))
 
500
 
488
501
    def test_empty(self):
489
502
        backing = self.get_transport()
490
503
        self.make_controldir('.')