def assert_config_file_contains(self, config_file, expected):
file = open(config_file)<EOL>config = yaml.safe_load(file.read())<EOL>file.close()<EOL>self.assertEqual(config, expected)<EOL>
Custom assert to check content of config_file.