~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rules.py

  • Committer: Marius Kruger
  • Date: 2009-01-18 01:07:21 UTC
  • mto: (3946.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3947.
  • Revision ID: amanic@gmail.com-20090118010721-2s62eobbgk51qqn9
actually support quoting the patterns as the docs suggest

Show diffs side-by-side

added added

removed removed

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