~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_source.py

fix NEWS

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
 
        # As of 20070809, there are no longer any mentions at all.
87
 
        self.assertEqual(0, occurences)
 
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)
88
93
 
89
94
 
90
95
class TestSource(TestSourceHelper):
198
203
                         " bzrlib/tests/test_source.py",
199
204
                         # this is broken to prevent a false match
200
205
                         "or add '# Copyright (C)"
201
 
                         " 2007 Canonical Ltd' to these files:",
 
206
                         " 2006 Canonical Ltd' to these files:",
202
207
                         "",
203
208
                        ]
204
209
            for fname, comment in incorrect: