~bzr-pqm/bzr/bzr.dev

« 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):
203
198
                         " bzrlib/tests/test_source.py",
204
199
                         # this is broken to prevent a false match
205
200
                         "or add '# Copyright (C)"
206
 
                         " 2006 Canonical Ltd' to these files:",
 
201
                         " 2007 Canonical Ltd' to these files:",
207
202
                         "",
208
203
                        ]
209
204
            for fname, comment in incorrect: