If I add an assert for len(list_branches()) to bb.test_switch.TestSwitch.test_switch_new_colocated:
$ bzr diff blackbox/test_switch.py=== modified file 'bzrlib/tests/blackbox/test_switch.py' --- bzrlib/tests/blackbox/test_switch.py 2011-11-16 17:52:07 +0000 +++ bzrlib/tests/blackbox/test_switch.py 2011-11-22 21:11:12 +0000 @@ -212,6 +212,7 @@ self.assertEquals( set([b.name for b in bzrdir.list_branches()]), set(["foo", "anotherbranch"])) + self.assertEquals(len(bzrdir.list_branches()), 2) self.assertEquals(bzrdir.open_branch().name, "anotherbranch") self.assertEquals(bzrdir.open_branch().last_revision(), revid1)
then that test fails too.
If I add an assert for len(list_ branches( )) to bb.test_ switch. TestSwitch. test_switch_ new_colocated:
$ bzr diff blackbox/ test_switch. py=== modified file 'bzrlib/ tests/blackbox/ test_switch. py' tests/blackbox/ test_switch. py 2011-11-16 17:52:07 +0000 tests/blackbox/ test_switch. py 2011-11-22 21:11:12 +0000
self. assertEquals(
set( [b.name for b in bzrdir. list_branches( )]),
set( ["foo", "anotherbranch"])) ls(len( bzrdir. list_branches( )), 2)
self. assertEquals( bzrdir. open_branch( ).name, "anotherbranch")
self. assertEquals( bzrdir. open_branch( ).last_ revision( ), revid1)
--- bzrlib/
+++ bzrlib/
@@ -212,6 +212,7 @@
+ self.assertEqua
then that test fails too.