23
23
from bzrlib.tests.tree_implementations import TestCaseWithTree
26
36
class TestIterSearchRules(TestCaseWithTree):
28
38
def make_per_user_searcher(self, lines):
29
39
"""Make a _RulesSearcher from a list of strings"""
32
42
def make_tree_with_rules(self, text):
33
43
tree = self.make_branch_and_tree('.')
35
46
text_utf8 = text.encode('utf-8')
36
47
self.build_tree_contents([(rules.RULES_TREE_FILENAME, text_utf8)])
37
48
tree.add(rules.RULES_TREE_FILENAME)