test debug
(self, mock_exists)
| 218 | |
| 219 | @patch('os.path.exists') |
| 220 | def test_options_debug(self, mock_exists): |
| 221 | """test debug""" |
| 222 | mock_exists.return_value = False |
| 223 | args = { |
| 224 | '--verbose': True, |
| 225 | '--dry': False, |
| 226 | '--cfg': 'path', |
| 227 | '--profile': 'profile', |
| 228 | 'gencfg': False, |
| 229 | } |
| 230 | with self.assertRaises(YamlException): |
| 231 | Options(args) |
| 232 | |
| 233 | |
| 234 | def main(): |