File: mapnik_config_test.py

package info (click to toggle)
mapnik 2.0.0%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 35,496 kB
  • sloc: cpp: 91,793; python: 6,051; xml: 3,528; sh: 848; makefile: 70; lisp: 10
file content (35 lines) | stat: -rw-r--r-- 786 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python

from nose.tools import *
from subprocess import call
import os

#import os, sys, glob, mapnik2

#def test():
#    # mapnik-config program
#    # should be on default path...
#    mc = 'mapnik-config'
#    valid = ['--help',
#             '--prefix',
#             '--libs',
#             '--dep-libs',
#             '--ldflags',
#             '--cflags',
#             '--fonts',
#             '--input-plugins',
#             '-v',
#             '--version',
#             '--svn-revision',
#    ]
#
#    # valid args should return 1
#    for item in valid:
#        eq_(0,call([mc,item]))
#    
#    # errors should return 1
#    eq_(1,call([mc,'']))
#    eq_(1,call([mc,'foo']))

if __name__ == "__main__":
    [eval(run)() for run in dir() if 'test_' in run]