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

  • Committer: Ian Clatworthy
  • Date: 2008-06-25 11:43:55 UTC
  • mto: (3515.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3516.
  • Revision ID: ian.clatworthy@canonical.com-20080625114355-k8k023ktb4m5e00e
test unknown rules detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from bzrlib import (
23
23
    config,
 
24
    errors,
24
25
    rules,
25
26
    tests,
26
27
    )
43
44
        """Make a _RulesSearcher from a list of strings"""
44
45
        return rules._IniBasedRulesSearcher(_patch_in_namespace(lines))
45
46
 
 
47
    def test_unknown_namespace(self):
 
48
        self.assertRaises(errors.UnknownRules, rules._IniBasedRulesSearcher,
 
49
            ["[junk]", "foo=bar"])
 
50
 
46
51
    def test_get_items_file_missing(self):
47
52
        rs = self.make_searcher(None)
48
53
        self.assertEquals(None, rs.get_items('a.txt'))