(self, search)
| 162 | return found |
| 163 | |
| 164 | def deleteLine(self, search): |
| 165 | found = False |
| 166 | logging.debug("Searching for %s to remove the line " % search) |
| 167 | temp_config = [] |
| 168 | for index, line in enumerate(self.new_config): |
| 169 | if line.lstrip().startswith("#"): |
| 170 | continue |
| 171 | if search not in line: |
| 172 | temp_config.append(line) |
| 173 | |
| 174 | self.new_config = list(temp_config) |
| 175 | |
| 176 | def compare(self, o): |
| 177 | result = (isinstance(o, self.__class__) and self.config == o.config) |
no test coverage detected