Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_get_config_without_required_keys_should_raise_exception(self):
empty_config_relative_path = self.TEST_CONFIG_FILES_PATH + 'empty_config.ini'
self.assertRaises(exceptions.MissingConnectorConfigKeyException, configuration._config_provided,
empty_config_relative_path)
def test_get_config_with_invalid_path(self):
invalid_relative_path = self.TEST_CONFIG_FILES_PATH + 'invalid_path'
self.assertRaises(FileNotFoundError, configuration._config_provided, invalid_relative_path)