118
119
def test_remove_files(self):
119
120
tree = self._make_add_and_assert_tree(files)
120
121
self.run_bzr("commit -m 'added files'")
121
self.run_bzr('remove a b b/c',
122
error_regexes=["deleted a", "deleted b", "deleted b/c"])
122
self.run_bzr('remove a b b/c d',
123
error_regexes=["deleted a", "deleted b", "deleted b/c",
123
125
self.assertFilesDeleted(files)
125
127
def test_remove_keep_files(self):
126
128
tree = self._make_add_and_assert_tree(files)
127
129
self.run_bzr("commit -m 'added files'")
128
self.run_bzr('remove --keep a b b/c',
129
error_regexes=["removed a", "removed b", "removed b/c"])
130
self.run_bzr('remove --keep a b b/c d',
131
error_regexes=["removed a", "removed b", "removed b/c",
130
133
self.assertFilesUnversioned(files)
132
135
def test_remove_on_deleted(self):
133
136
tree = self._make_add_and_assert_tree([a])
134
self.run_bzr("commit -m 'added a'")
137
self.run_bzr("commit -m 'added a'")
136
139
self.assertInWorkingTree(a)
137
140
self.run_bzr('remove a')