diff tests/test_read.py @ 1:1b94f3bf97e5

* limit distance function * start gridding * improve unicode handling
author Jeff Hammel <k0scist@gmail.com>
date Sat, 24 Jun 2017 14:02:14 -0700
parents 5dba84370182
children 49aae0c0293b
line wrap: on
line diff
--- a/tests/test_read.py	Sat Jun 24 12:03:39 2017 -0700
+++ b/tests/test_read.py	Sat Jun 24 14:02:14 2017 -0700
@@ -8,6 +8,7 @@
 import unittest
 from globalneighbors import schema
 from globalneighbors.read import read_tsv
+from globalneighbors.read import read_city_list
 
 
 here = os.path.dirname(os.path.abspath(__file__))
@@ -47,6 +48,11 @@
         for row in cities:
             row = schema.cast_row(row, types=schema.types)
 
+    def test_read_unicode(self):
+        """ensure we can read the cities as unicode"""
+
+        cities = read_city_list(self.full_tsv)
+
 
 if __name__ == '__main__':
     unittest.main()