Commit a85aff6a authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[1901] small style fixes

parent 476b3eff
......@@ -90,10 +90,15 @@ class ConfigManagerData:
# Don't know what to do if it is more recent
if data_version > config_data.BIND10_CONFIG_DATA_VERSION:
raise ConfigManagerDataReadError("Cannot load configuration file: version %d not yet supported" % config['version'])
raise ConfigManagerDataReadError(
"Cannot load configuration file: version "
"%d not yet supported" % config['version'])
# At some point we might give up supporting older versions
if data_version < 1:
raise ConfigManagerDataReadError("Cannot load configuration file: version %d no longer supported" % config['version'])
raise ConfigManagerDataReadError(
"Cannot load configuration file: version "
"%d no longer supported" % config['version'])
# Ok, so we have a still-supported older version. Apply all
# updates
......
......@@ -92,7 +92,6 @@ class TestConfigManagerData(unittest.TestCase):
config['version'] = config_data.BIND10_CONFIG_DATA_VERSION
self.assertEqual(config, updated)
def test_read_from_file(self):
ConfigManagerData.read_from_file(self.writable_data_path, "b10-config.db")
self.assertRaises(ConfigManagerDataEmpty,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment