~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-03 07:49:05 UTC
  • mfrom: (1831.1.2 bzr.merge.no-ignores)
  • Revision ID: pqm@pqm.ubuntu.com-20060703074905-677c02d441974aea
(mbp) remove default ignore pattern list

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])