~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Vincent Ladeuil
  • Date: 2012-01-09 20:55:07 UTC
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120109205507-2i3en5r4w4ohdchj
Use idioms coherently and add comments to make their purpose clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1296
1296
        finally:
1297
1297
            branch.unlock()
1298
1298
        self.assertEqual(smart_req.SuccessfulSmartServerResponse(()), response)
1299
 
        refreshed = _mod_branch.Branch.open(branch.base)
1300
 
        self.assertEqual(None, refreshed.get_parent())
 
1299
        # Refresh branch as SetParentLocation modified it
 
1300
        branch = branch.bzrdir.open_branch()
 
1301
        self.assertEqual(None, branch.get_parent())
1301
1302
 
1302
1303
    def test_set_parent_something(self):
1303
1304
        branch = self.make_branch('base', format="1.9")