Helper to create temporary configuration files.
(self, config)
| 836 | self.assertEqual(options, self.default_options) |
| 837 | |
| 838 | def create_config_file(self, config): |
| 839 | """ Helper to create temporary configuration files. """ |
| 840 | if not isinstance(config, str): |
| 841 | # convert to string |
| 842 | config = yaml.dump(config) |
| 843 | fd, self.tempfile = tempfile.mkstemp('.yml') |
| 844 | with os.fdopen(fd, 'w') as fp: |
| 845 | fp.write(config) |
| 846 | |
| 847 | def testExtensionConfigOption(self): |
| 848 | config = { |
no outgoing calls
no test coverage detected