/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/tree_implementations/test_iter_search_rules.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-05 03:11:40 UTC
  • mfrom: (3691 +trunk)
  • mto: (3697.7.4 1.7)
  • mto: This revision was merged to the branch mainline in revision 3748.
  • Revision ID: john@arbash-meinel.com-20080905031140-hj0adlcf30l7i99v
Merge in bzr.dev 3691

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    def make_tree_with_rules(self, text):
33
33
        tree = self.make_branch_and_tree('.')
34
34
        if text is not None:
 
35
            self.fail("No method for in-tree rules agreed on yet.")
35
36
            text_utf8 = text.encode('utf-8')
36
37
            self.build_tree_contents([(rules.RULES_TREE_FILENAME, text_utf8)])
37
38
            tree.add(rules.RULES_TREE_FILENAME)
51
52
        self.assertEquals((('foo', 'baz'),), result[0])
52
53
        self.assertEquals((('foo', 'bar'), ('a', 'True')), result[1])
53
54
 
54
 
    def test_iter_search_rules_just_tree(self):
 
55
    def _disabled_test_iter_search_rules_just_tree(self):
55
56
        per_user = self.make_per_user_searcher('')
56
57
        tree = self.make_tree_with_rules(
57
58
            "[name ./a.txt]\n"
64
65
        self.assertEquals((('foo', 'baz'),), result[0])
65
66
        self.assertEquals((('foo', 'bar'), ('a', 'True')), result[1])
66
67
 
67
 
    def test_iter_search_rules_tree_and_per_user(self):
 
68
    def _disabled_test_iter_search_rules_tree_and_per_user(self):
68
69
        per_user = self.make_per_user_searcher(
69
70
            "[name ./a.txt]\nfoo=baz\n"
70
71
            "[name *.txt]\nfoo=bar\na=True\n")