~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_switch.py

(mbp) Stop depending on the particular CPython ordering of dictionary keys
 when testing the result of BzrDir.get_branches. (Wouter van Heyst)

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
        revid2 = tree.commit('rev2')
189
189
        self.run_bzr(['switch', '-b', 'anotherbranch'])
190
190
        self.assertEquals(
191
 
            ['', 'anotherbranch'],
192
 
            tree.branch.bzrdir.get_branches().keys())
 
191
            set(['', 'anotherbranch']),
 
192
            set(tree.branch.bzrdir.get_branches().keys()))
193
193
 
194
194
    def test_switch_into_unrelated_colocated(self):
195
195
        # Create a new colocated branch from an existing non-colocated branch.