Lines Matching full:expected
224 def _read_and_compare(self, compare, expected): argument
228 expected: file that contains the expected data
230 with open(os.path.join(self._test_dir, expected)) as f:
234 def _contains(self, attr, expected): argument
237 expected)
239 def _matches(self, attr, expected): argument
241 expected)
243 def config_contains(self, expected): argument
244 """Check if resulted configuration contains expected data.
246 expected: file that contains the expected data
247 returncode: True if result contains the expected data, False otherwise
249 return self._contains('config', expected)
251 def config_matches(self, expected): argument
252 """Check if resulted configuration exactly matches expected data.
254 expected: file that contains the expected data
255 returncode: True if result matches the expected data, False otherwise
257 return self._matches('config', expected)
259 def stdout_contains(self, expected): argument
260 """Check if resulted stdout contains expected data.
262 expected: file that contains the expected data
263 returncode: True if result contains the expected data, False otherwise
265 return self._contains('stdout', expected)
267 def stdout_matches(self, expected): argument
268 """Check if resulted stdout exactly matches expected data.
270 expected: file that contains the expected data
271 returncode: True if result matches the expected data, False otherwise
273 return self._matches('stdout', expected)
275 def stderr_contains(self, expected): argument
276 """Check if resulted stderr contains expected data.
278 expected: file that contains the expected data
279 returncode: True if result contains the expected data, False otherwise
281 return self._contains('stderr', expected)
283 def stderr_matches(self, expected): argument
284 """Check if resulted stderr exactly matches expected data.
286 expected: file that contains the expected data
287 returncode: True if result matches the expected data, False otherwise
289 return self._matches('stderr', expected)