+ update parameters tests
This commit is contained in:
parent
e68a65db33
commit
ba9e42016c
1 changed files with 5 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import sys
|
||||
from nose.tools import *
|
||||
from utilities import execution_path
|
||||
|
||||
|
@ -15,13 +16,13 @@ def test_parameter():
|
|||
eq_(p[0],'key')
|
||||
eq_(p[1],'value')
|
||||
|
||||
p = mapnik.Parameter('int',1)
|
||||
p = mapnik.Parameter('int',sys.maxint)
|
||||
eq_(p[0],'int')
|
||||
eq_(p[1],1)
|
||||
eq_(p[1],sys.maxint)
|
||||
|
||||
p = mapnik.Parameter('float',1.0777)
|
||||
p = mapnik.Parameter('float',float(sys.maxint))
|
||||
eq_(p[0],'float')
|
||||
eq_(p[1],1.0777)
|
||||
eq_(p[1],float(sys.maxint))
|
||||
|
||||
p = mapnik.Parameter('bool_string','True')
|
||||
eq_(p[0],'bool_string')
|
||||
|
|
Loading…
Reference in a new issue