Lines Matching full:expected
243 def _read_and_compare(self, compare, expected): argument
247 expected: file that contains the expected data
249 with open(os.path.join(self._test_dir, expected)) as f:
253 def _contains(self, attr, expected): argument
256 expected)
258 def _matches(self, attr, expected): argument
260 expected)
262 def config_contains(self, expected): argument
263 """Check if resulted configuration contains expected data.
265 expected: file that contains the expected data
266 returncode: True if result contains the expected data, False otherwise
268 return self._contains('config', expected)
270 def config_matches(self, expected): argument
271 """Check if resulted configuration exactly matches expected data.
273 expected: file that contains the expected data
274 returncode: True if result matches the expected data, False otherwise
276 return self._matches('config', expected)
278 def stdout_contains(self, expected): argument
279 """Check if resulted stdout contains expected data.
281 expected: file that contains the expected data
282 returncode: True if result contains the expected data, False otherwise
284 return self._contains('stdout', expected)
286 def stdout_matches(self, expected): argument
287 """Check if resulted stdout exactly matches expected data.
289 expected: file that contains the expected data
290 returncode: True if result matches the expected data, False otherwise
292 return self._matches('stdout', expected)
294 def stderr_contains(self, expected): argument
295 """Check if resulted stderr contains expected data.
297 expected: file that contains the expected data
298 returncode: True if result contains the expected data, False otherwise
300 return self._contains('stderr', expected)
302 def stderr_matches(self, expected): argument
303 """Check if resulted stderr exactly matches expected data.
305 expected: file that contains the expected data
306 returncode: True if result matches the expected data, False otherwise
308 return self._matches('stderr', expected)