/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_knit.py

  • Committer: John Arbash Meinel
  • Date: 2006-12-21 20:07:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2212.
  • Revision ID: john@arbash-meinel.com-20061221200734-3kqiep3996uxtwsc
Add an exception class when the knit index storage method is unknown, and properly test for it

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from cStringIO import StringIO
20
20
import difflib
21
21
 
 
22
from bzrlib import (
 
23
    errors,
 
24
    )
22
25
from bzrlib.errors import (
23
26
    RevisionAlreadyPresent,
24
27
    KnitHeaderError,
484
487
 
485
488
        self.assertEqual("fulltext", index.get_method(u"a"))
486
489
        self.assertEqual("line-delta", index.get_method(u"b"))
487
 
        self.assertRaises(AssertionError, index.get_method, u"c")
 
490
        self.assertRaises(errors.KnitIndexUnknownMethod, index.get_method, u"c")
488
491
 
489
492
    def test_get_options(self):
490
493
        transport = MockTransport([