def test_empty_config(self): c = Config() c.load('') self.assertEqual(None, c.schema) self.assertEqual(None, c.connection) self.assertEqual({}, c.opts)
def test_normal_config(self): c = Config() c.load(NORMAL_CONFIG_FILE) self.assertEqual('company', c.schema) self.assertEqual('oracle://server.com/company', c.connection)