Skip to content

Commit

Permalink
Merge branch 'relative-paths' of github.com:mapnik/Cascadenik into re…
Browse files Browse the repository at this point in the history
…lative-paths
  • Loading branch information
Dane Springmeyer committed Oct 29, 2010
2 parents 0637e1d + c1f8703 commit 0bdfb4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Expand Up @@ -2392,11 +2392,11 @@ def testReflexivePaths(self):
map = compile(mml_data, dirs)

img_path = map.layers[0].styles[0].rules[0].symbolizers[0].file
assert img_path.startswith(self.tmpdir1)
assert img_path.startswith(self.tmpdir1), 'Assert that "%s" starts with "%s"' % (img_path, self.tmpdir1)
assert os.path.exists(img_path)

shp_path = map.layers[0].datasource.parameters['file'] + '.shp'
assert shp_path.startswith(self.tmpdir1)
assert shp_path.startswith(self.tmpdir1), 'Assert that "%s" starts with "%s"' % (shp_path, self.tmpdir1)
assert os.path.exists(shp_path)

if __name__ == '__main__':
Expand Down

0 comments on commit 0bdfb4d

Please sign in to comment.