/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: Jelmer Vernooij
  • Date: 2009-01-30 16:48:13 UTC
  • mfrom: (3974 +trunk)
  • mto: (3920.2.35 dpush)
  • mto: This revision was merged to the branch mainline in revision 4281.
  • Revision ID: jelmer@samba.org-20090130164813-casbjd16v0gy59zn
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        self.assertEquals((('foo', 'bar'),),
63
63
            rs.get_selected_items('a.txt', ['foo']))
64
64
 
 
65
    def test_get_items_from_multiple_glob_match(self):
 
66
        rs = self.make_searcher(
 
67
            "[name *.txt *.py 'x x' \"y y\"]\nfoo=bar\na=True\n")
 
68
        self.assertEquals((), rs.get_items('NEWS'))
 
69
        self.assertEquals((('foo', 'bar'), ('a', 'True')),
 
70
            rs.get_items('a.py'))
 
71
        self.assertEquals((('foo', 'bar'), ('a', 'True')),
 
72
            rs.get_items('a.txt'))
 
73
        self.assertEquals((('foo', 'bar'), ('a', 'True')),
 
74
            rs.get_items('x x'))
 
75
        self.assertEquals((('foo', 'bar'), ('a', 'True')),
 
76
            rs.get_items('y y'))
 
77
 
65
78
    def test_get_items_pathname_match(self):
66
79
        rs = self.make_searcher("[name ./a.txt]\nfoo=baz\n")
67
80
        self.assertEquals((('foo', 'baz'),),