Helper to create temporary configuration files.
(self, config)
| 895 | self.assertEqual(options, self.default_options) |
| 896 | |
| 897 | def create_config_file(self, config): |
| 898 | """ Helper to create temporary configuration files. """ |
| 899 | if not isinstance(config, str): |
| 900 | # convert to string |
| 901 | config = yaml.dump(config) |
| 902 | fd, self.tempfile = tempfile.mkstemp('.yml') |
| 903 | with os.fdopen(fd, 'w') as fp: |
| 904 | fp.write(config) |
| 905 | |
| 906 | def testExtensionConfigOption(self): |
| 907 | config = { |
no outgoing calls
no test coverage detected