~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/testweave.py

  • Committer: Martin Pool
  • Date: 2005-07-18 11:24:34 UTC
  • Revision ID: mbp@sourcefrog.net-20050718112434-90aeaa8f16c6a581
- weave raises IndexError when an invalid revision is given

- don't test internal method Weave._delta

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
from bzrlib.weave import Weave, WeaveFormatError
27
27
from bzrlib.weavefile import write_weave, read_weave
28
28
from pprint import pformat
29
 
from bzrlib.intset import IntSet
30
29
 
31
30
 
32
31
try:
111
110
    def runTest(self):
112
111
        k = Weave()
113
112
 
114
 
        self.assertRaises(ValueError,
 
113
        self.assertRaises(IndexError,
115
114
                          k.add,
116
115
                          [69],
117
116
                          ['new text!'])
149
148
        k.add([0, 1],
150
149
              text3)
151
150
 
152
 
        self.log("changes to text3: " + pformat(list(k._delta(set([0, 1]), text3))))
 
151
        # self.log("changes to text3: " + pformat(list(k._delta(set([0, 1]), text3))))
153
152
 
154
153
        self.log("k._l=" + pformat(k._l))
155
154