def testRemoveFilesByPath(self): project = XcodeProject(self.obj) original = project.__str__() build_files = project.add_file("file.m") result = project.remove_files_by_path('file.m') self.assertTrue(result) self.assertEqual(project.__str__(), original)
def testRemoveFileById(self): project = XcodeProject(self.obj) original = project.__str__() build_files = project.add_file("file.m") file = project.get_files_by_name('file.m')[0] result = project.remove_file_by_id(file.get_id()) self.assertTrue(result) self.assertEqual(project.__str__(), original)
def testRemoveFileByIdKeepShellScriptBuildPhases(self): project = XcodeProject(self.obj) project.add_run_script('ls -la') original = project.__str__() project.add_file("file.m") file = project.get_files_by_name('file.m')[0] result = project.remove_file_by_id(file.get_id()) self.assertTrue(result) self.assertEqual(project.__str__(), original)