5050 'place' : '31175' ,
5151 'district' : '06' , # for old `state_district` calling.
5252 'congressional_district' : '06' ,
53- 'legislative_district' : '07 ' ,
53+ 'legislative_district' : '06 ' ,
5454 'zcta' : '20877' ,
5555 'msa' : '47900' ,
5656 'csa' : '548' ,
@@ -133,9 +133,6 @@ class TestEndpoints(CensusTestCase):
133133
134134 def check_endpoints (self , client_name , tests , ** kwargs ):
135135
136- if kwargs :
137- tests = ((k , kwargs .get (k , v )) for k , v in tests )
138-
139136 client = self .client (client_name )
140137 fields = ('NAME' ,)
141138
@@ -144,7 +141,7 @@ def check_endpoints(self, client_name, tests, **kwargs):
144141 msg = '{}.{}' .format (client_name , method_name )
145142
146143 method = getattr (client , method_name )
147- data = method (fields , ** TEST_DATA )
144+ data = method (fields , ** TEST_DATA , ** kwargs )
148145 self .assertTrue (data , msg )
149146 self .assertEqual (data [0 ]['NAME' ], expected , msg )
150147 time .sleep (0.2 )
@@ -164,19 +161,19 @@ def test_acs5(self):
164161 ('state_county_subdivision' ,
165162 'District 9, Montgomery County, Maryland' ),
166163 ('state_county_tract' ,
167- 'Census Tract 7007.06, Montgomery County, Maryland' ),
164+ 'Census Tract 7007.06; Montgomery County; Maryland' ),
168165 ('state_county_blockgroup' ,
169- ('Block Group 1, Census Tract 7007.06, '
170- 'Montgomery County, Maryland' )),
166+ ('Block Group 1; Census Tract 7007.06; '
167+ 'Montgomery County; Maryland' )),
171168 ('state_place' , 'Gaithersburg city, Maryland' ),
172169 ('state_district' ,
173- 'Congressional District 6 (116th Congress), Maryland' ),
170+ 'Congressional District 6 (118th Congress), Maryland' ),
174171 ('state_congressional_district' ,
175- 'Congressional District 6 (116th Congress), Maryland' ),
172+ 'Congressional District 6 (118th Congress), Maryland' ),
176173 ('state_legislative_district_upper' ,
177- 'State Senate District 7 (2018 ), Maryland' ),
174+ 'State Senate District 6 (2022 ), Maryland' ),
178175 ('state_legislative_district_lower' ,
179- 'State Legislative District 7 (2018 ), Maryland' ),
176+ 'State Legislative District 6 (2022 ), Maryland' ),
180177 ('state_zipcode' , 'ZCTA5 20877' ),
181178 )
182179
@@ -201,9 +198,9 @@ def test_acs5_previous_years(self):
201198 ('state_congressional_district' ,
202199 'Congressional District 6 (116th Congress), Maryland' ),
203200 ('state_legislative_district_upper' ,
204- 'State Senate District 7 (2018), Maryland' ),
201+ 'State Senate District 6 (2018), Maryland' ),
205202 ('state_legislative_district_lower' ,
206- 'State Legislative District 7 (2018), Maryland' ),
203+ 'State Legislative District 6 (2018), Maryland' ),
207204 ('state_zipcode' , 'ZCTA5 20877' ),
208205 )
209206
@@ -215,7 +212,7 @@ def test_acs5st(self):
215212 ('us' , 'United States' ),
216213 ('state' , 'Maryland' ),
217214 ('state_congressional_district' ,
218- 'Congressional District 6 (116th Congress), Maryland' ),
215+ 'Congressional District 6 (118th Congress), Maryland' ),
219216 )
220217
221218 self .check_endpoints ('acs5st' , tests )
@@ -226,7 +223,7 @@ def test_acs1dp(self):
226223 ('us' , 'United States' ),
227224 ('state' , 'Maryland' ),
228225 ('state_congressional_district' ,
229- 'Congressional District 6 (116th Congress), Maryland' ),
226+ 'Congressional District 6 (118th Congress), Maryland' ),
230227 )
231228
232229 self .check_endpoints ('acs1dp' , tests )
@@ -277,9 +274,9 @@ def test_pl(self):
277274 ('state_congressional_district' ,
278275 'Congressional District 6 (116th Congress), Maryland' ),
279276 ('state_legislative_district_upper' ,
280- 'State Senate District 7 (2018), Maryland' ),
277+ 'State Senate District 6 (2018), Maryland' ),
281278 ('state_legislative_district_lower' ,
282- 'State Legislative District 7 (2018), Maryland' ),
279+ 'State Legislative District 6 (2018), Maryland' ),
283280 )
284281
285282 self .check_endpoints ('pl' , tests )
0 commit comments