Lines Matching refs:expected

228     def _read_and_compare(self, compare, expected):
232 expected: file that contains the expected data
234 with open(os.path.join(self._test_dir, expected)) as f:
238 def _contains(self, attr, expected):
241 expected)
243 def _matches(self, attr, expected):
245 expected)
247 def config_contains(self, expected):
248 """Check if resulted configuration contains expected data.
250 expected: file that contains the expected data
251 returncode: True if result contains the expected data, False otherwise
253 return self._contains('config', expected)
255 def config_matches(self, expected):
256 """Check if resulted configuration exactly matches expected data.
258 expected: file that contains the expected data
259 returncode: True if result matches the expected data, False otherwise
261 return self._matches('config', expected)
263 def stdout_contains(self, expected):
264 """Check if resulted stdout contains expected data.
266 expected: file that contains the expected data
267 returncode: True if result contains the expected data, False otherwise
269 return self._contains('stdout', expected)
271 def stdout_matches(self, expected):
272 """Check if resulted stdout exactly matches expected data.
274 expected: file that contains the expected data
275 returncode: True if result matches the expected data, False otherwise
277 return self._matches('stdout', expected)
279 def stderr_contains(self, expected):
280 """Check if resulted stderr contains expected data.
282 expected: file that contains the expected data
283 returncode: True if result contains the expected data, False otherwise
285 return self._contains('stderr', expected)
287 def stderr_matches(self, expected):
288 """Check if resulted stderr exactly matches expected data.
290 expected: file that contains the expected data
291 returncode: True if result matches the expected data, False otherwise
293 return self._matches('stderr', expected)