/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 bzrlib/tests/test_source.py

Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        """Test that the number of uses of working_tree in branch is stable."""
81
81
        occurences = self.find_occurences('WorkingTree',
82
82
                                          self.source_file_name(bzrlib.branch))
83
 
        # do not even think of increasing this number. If you think you need to
 
83
        # Do not even think of increasing this number. If you think you need to
84
84
        # increase it, then you almost certainly are doing something wrong as
85
85
        # the relationship from working_tree to branch is one way.
86
 
        # This number should be 4 (import NoWorkingTree and WorkingTree, 
87
 
        # raise NoWorkingTree from working_tree(), and construct a working tree
88
 
        # there) but a merge that regressed this was done before this test was
89
 
        # written. Note that this is an exact equality so that when the number
90
 
        # drops, it is not given a buffer but rather this test updated
91
 
        # immediately.
92
 
        self.assertEqual(2, occurences)
 
86
        # As of 20070809, there are no longer any mentions at all.
 
87
        self.assertEqual(0, occurences)
93
88
 
94
89
 
95
90
class TestSource(TestSourceHelper):