~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-03 16:19:30 UTC
  • mfrom: (1836 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1851.
  • Revision ID: john@arbash-meinel.com-20060703161930-c373bd7eddd73011
[merge] bzr.dev 1836

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
 
315
315
    def test__get_ignore_rules_as_regex(self):
316
316
        tree = self.make_branch_and_tree('.')
317
 
        # test against the default rules.
318
 
        reference_output = tree._combine_ignore_rules(bzrlib.DEFAULT_IGNORE)[0]
 
317
        self.build_tree_contents([('.bzrignore', 'CVS\n.hg\n')])
 
318
        reference_output = tree._combine_ignore_rules(['CVS', '.hg'])[0]
319
319
        regex_rules = tree._get_ignore_rules_as_regex()[0]
320
320
        self.assertEqual(len(reference_output[1]), regex_rules[0].groups)
321
321
        self.assertEqual(reference_output[1], regex_rules[1])