Skip to content

Commit 41d3fa2

Browse files
committed
Added a test for getMultiple
1 parent 348a135 commit 41d3fa2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests.py

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def test_field_filter(self):
3535
# We should only have one property, OBJECTID.
3636
features = districts.get(0, where="STATE_ABBR = 'IN'", fields=['OBJECTID'])
3737
self.assertEqual(len(features.get('features')[0].get('properties')), 1)
38+
39+
def test_multiple(self):
40+
districts = ArcGIS("http://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Legislative/MapServer")
41+
# Gets 114th and 113th congressional districts for hawaii.
42+
features = districts.getMultiple([0, 12], where="STATE = 15")
43+
self.assertEqual(len(features.get('features')), 4)
3844

3945

4046

0 commit comments

Comments
 (0)