adding ordered dict to tests

This commit is contained in:
Andy Eschbacher 2016-08-29 16:46:49 -04:00
parent a451fb5b6a
commit 623613aa5c

View File

@ -2,18 +2,19 @@ import unittest
import crankshaft.pysal_utils as pu import crankshaft.pysal_utils as pu
from crankshaft import random_seeds from crankshaft import random_seeds
from collections import OrderedDict
class PysalUtilsTest(unittest.TestCase): class PysalUtilsTest(unittest.TestCase):
"""Testing class for utility functions related to PySAL integrations""" """Testing class for utility functions related to PySAL integrations"""
def setUp(self): def setUp(self):
self.params = {"id_col": "cartodb_id", self.params = OrderedDict([("id_col", "cartodb_id"),
"attr1": "andy", ("attr1": "andy"),
"attr2": "jay_z", ("attr2": "jay_z"),
"subquery": "SELECT * FROM a_list", ("subquery": "SELECT * FROM a_list"),
"geom_col": "the_geom", ("geom_col": "the_geom"),
"num_ngbrs": 321} ("num_ngbrs": 321)])
self.params_array = {"id_col": "cartodb_id", self.params_array = {"id_col": "cartodb_id",
"time_cols": ["_2013_dec", "_2014_jan", "_2014_feb"], "time_cols": ["_2013_dec", "_2014_jan", "_2014_feb"],