~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_weave.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-30 01:02:59 UTC
  • mto: (1185.50.58 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: john@arbash-meinel.com-20060130010259-39020721b61b67b1
cleanups suggested by Robert.

Show diffs side-by-side

added added

removed removed

Lines of Context:
994
994
class InstrumentedWeave(Weave):
995
995
    """Keep track of how many times functions are called."""
996
996
    
997
 
    _extract_count = 0
 
997
    def __init__(self, weave_name=None):
 
998
        self._extract_count = 0
 
999
        Weave.__init__(self, weave_name=weave_name)
998
1000
 
999
1001
    def _extract(self, versions):
1000
1002
        self._extract_count += 1
1031
1033
        self.assertEqual(4, w1._extract_count)
1032
1034
        self.assertEqual(4, w2._extract_count)
1033
1035
 
1034
 
 
1035
1036
    def test_double_parent(self):
1036
1037
        # It should not be considered illegal to add
1037
1038
        # a revision with the same parent twice