~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_add.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-21 04:02:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1877.
  • Revision ID: john@arbash-meinel.com-20060721040214-9db86450785a5c3e
Make set_user_ignores a private function, and update the doc string to recommend it isn't used.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    def test_add_dry_run(self):
100
100
        """Test a dry run add, make sure nothing is added."""
101
101
        from bzrlib.commands import run_bzr
102
 
        ignores.set_user_ignores(['./.bazaar'])
 
102
        ignores._set_user_ignores(['./.bazaar'])
103
103
        eq = self.assertEqual
104
104
        wt = self.make_branch_and_tree('.')
105
105
        self.build_tree(['inertiatic/', 'inertiatic/esp'])
118
118
        from bzrlib.commands import run_bzr
119
119
        wt = self.make_branch_and_tree('.')
120
120
        # The default ignore list includes '*.py[co]', but not CVS
121
 
        ignores.set_user_ignores(['./.bazaar', '*.py[co]'])
 
121
        ignores._set_user_ignores(['./.bazaar', '*.py[co]'])
122
122
        self.build_tree(['inertiatic/', 'inertiatic/esp', 'inertiatic/CVS',
123
123
                        'inertiatic/foo.pyc'])
124
124
        added, ignored = smart_add_tree(wt, u'.')