Lines Matching full:expected

220     def _read_and_compare(self, compare, expected):  argument
224 expected: file that contains the expected data
226 with open(os.path.join(self._test_dir, expected)) as f:
230 def _contains(self, attr, expected): argument
233 expected)
235 def _matches(self, attr, expected): argument
237 expected)
239 def config_contains(self, expected): argument
240 """Check if resulted configuration contains expected data.
242 expected: file that contains the expected data
243 returncode: True if result contains the expected data, False otherwise
245 return self._contains('config', expected)
247 def config_matches(self, expected): argument
248 """Check if resulted configuration exactly matches expected data.
250 expected: file that contains the expected data
251 returncode: True if result matches the expected data, False otherwise
253 return self._matches('config', expected)
255 def stdout_contains(self, expected): argument
256 """Check if resulted stdout contains expected data.
258 expected: file that contains the expected data
259 returncode: True if result contains the expected data, False otherwise
261 return self._contains('stdout', expected)
263 def stdout_matches(self, expected): argument
264 """Check if resulted stdout exactly matches expected data.
266 expected: file that contains the expected data
267 returncode: True if result matches the expected data, False otherwise
269 return self._matches('stdout', expected)
271 def stderr_contains(self, expected): argument
272 """Check if resulted stderr contains expected data.
274 expected: file that contains the expected data
275 returncode: True if result contains the expected data, False otherwise
277 return self._contains('stderr', expected)
279 def stderr_matches(self, expected): argument
280 """Check if resulted stderr exactly matches expected data.
282 expected: file that contains the expected data
283 returncode: True if result matches the expected data, False otherwise
285 return self._matches('stderr', expected)