Lines Matching defs:expected

247     def _read_and_compare(self, compare, expected):
251 expected: file that contains the expected data
253 with open(os.path.join(self._test_dir, expected)) as f:
257 def _contains(self, attr, expected):
260 expected)
262 def _matches(self, attr, expected):
264 expected)
266 def config_contains(self, expected):
267 """Check if resulted configuration contains expected data.
269 expected: file that contains the expected data
270 returncode: True if result contains the expected data, False otherwise
272 return self._contains('config', expected)
274 def config_matches(self, expected):
275 """Check if resulted configuration exactly matches expected data.
277 expected: file that contains the expected data
278 returncode: True if result matches the expected data, False otherwise
280 return self._matches('config', expected)
282 def stdout_contains(self, expected):
283 """Check if resulted stdout contains expected data.
285 expected: file that contains the expected data
286 returncode: True if result contains the expected data, False otherwise
288 return self._contains('stdout', expected)
290 def stdout_matches(self, expected):
291 """Check if resulted stdout exactly matches expected data.
293 expected: file that contains the expected data
294 returncode: True if result matches the expected data, False otherwise
296 return self._matches('stdout', expected)
298 def stderr_contains(self, expected):
299 """Check if resulted stderr contains expected data.
301 expected: file that contains the expected data
302 returncode: True if result contains the expected data, False otherwise
304 return self._contains('stderr', expected)
306 def stderr_matches(self, expected):
307 """Check if resulted stderr exactly matches expected data.
309 expected: file that contains the expected data
310 returncode: True if result matches the expected data, False otherwise
312 return self._matches('stderr', expected)