Helper to create temporary configuration files.
(self, config)
| 871 | self.assertEqual(options, self.default_options) |
| 872 | |
| 873 | def create_config_file(self, config): |
| 874 | """ Helper to create temporary configuration files. """ |
| 875 | if not isinstance(config, str): |
| 876 | # convert to string |
| 877 | config = yaml.dump(config) |
| 878 | fd, self.tempfile = tempfile.mkstemp('.yml') |
| 879 | with os.fdopen(fd, 'w') as fp: |
| 880 | fp.write(config) |
| 881 | |
| 882 | def testExtensionConfigOption(self): |
| 883 | config = { |
no outgoing calls
no test coverage detected