openstack-planet/test.py
Jeremy Stanley c812ce0367 Fix latent bug in test.
* test.py: Changed to assert a particular path in the configuration,
factoring out a latent bug where sys.exit was conditionally called
without first importing it.

Change-Id: Iaf8a029d226777f38004527802494366a89c943d
2012-11-06 16:28:15 +00:00

7 lines
142 B
Python

import ConfigParser
cp = ConfigParser.ConfigParser()
cp.read("planet.ini")
assert cp.get('Planet', 'output_dir') == '/srv/planet/openstack'