From ba9e42016cb005735b3f8ec1d935c2a422914df5 Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 4 Jan 2013 16:56:26 +0000 Subject: [PATCH] + update parameters tests --- tests/python_tests/parameters_test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/python_tests/parameters_test.py b/tests/python_tests/parameters_test.py index 44c55e4a3..bead2564a 100644 --- a/tests/python_tests/parameters_test.py +++ b/tests/python_tests/parameters_test.py @@ -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')