~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_remove.py

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007-2010 Canonical Ltd
 
1
# Copyright (C) 2007-2012, 2016 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
184
184
        ignores.add_runtime_ignores(["*ignored*"])
185
185
 
186
186
        self.build_tree(['unknown_ignored_file'])
187
 
        self.assertNotEquals(None, tree.is_ignored('unknown_ignored_file'))
 
187
        self.assertNotEqual(None, tree.is_ignored('unknown_ignored_file'))
188
188
        tree.remove('unknown_ignored_file', keep_files=False)
189
189
        self.assertRemovedAndDeleted('unknown_ignored_file')
190
190
 
191
191
        self.build_tree(['b/unknown_ignored_file', 'b/unknown_ignored_dir/'])
192
 
        self.assertNotEquals(None, tree.is_ignored('b/unknown_ignored_file'))
193
 
        self.assertNotEquals(None, tree.is_ignored('b/unknown_ignored_dir'))
 
192
        self.assertNotEqual(None, tree.is_ignored('b/unknown_ignored_file'))
 
193
        self.assertNotEqual(None, tree.is_ignored('b/unknown_ignored_dir'))
194
194
        tree.remove('b', keep_files=False)
195
195
        self.assertRemovedAndDeleted('b')
196
196
        tree._validate()
202
202
        tree.add(files)
203
203
        ignores.add_runtime_ignores(["*ignored*"])
204
204
        self.assertInWorkingTree(files)
205
 
        self.assertNotEquals(None, tree.is_ignored(files[0]))
 
205
        self.assertNotEqual(None, tree.is_ignored(files[0]))
206
206
 
207
207
        tree.remove(files, keep_files=False)
208
208
        self.assertNotInWorkingTree(files)