@@ -39,8 +39,9 @@ def setUp(self, **kwargs):
3939 self .mock_location = Location ('Boston, MA' , (42.355662 ,- 71.065483 ),
4040 {'state' :'MA' ,'zipcode' :'02111' })
4141
42- self .mock_location_split_parties = Location ('Bakersfield, CA' , (35.375960 , - 119.020865 ),
43- {'state' :'CA' ,'zipcode' :'93301' })
42+ # this zipcode is CA-4, a district with Republican Representative and Democratic Senator
43+ self .mock_location_split_parties = Location ('South Lake Tahoe, CA' , (38.939391 , - 119.977879 ),
44+ {'state' :'CA' ,'zipcode' :'96150' })
4445
4546 # this zipcode pretty evenly split between KY-2 & TN-7
4647 self .mock_location_multiple_states = Location ('Fort Campbell, KY' , (36.647207 , - 87.451635 ),
@@ -72,14 +73,14 @@ def test_district_state_lines(self):
7273 self .assertEqual (len (districts ), 2 )
7374
7475 def test_senate (self ):
75- senator_0 = self .us_data .get_senators ('CA ' )[0 ]
76+ senator_0 = self .us_data .get_senators ('MA ' )[0 ]
7677 self .assertEqual (senator_0 ['chamber' ], 'senate' )
77- self .assertEqual (senator_0 ['state' ], 'CA ' )
78+ self .assertEqual (senator_0 ['state' ], 'MA ' )
7879 self .assertGreater (len (senator_0 ['offices' ]), 1 )
7980
80- senator_1 = self .us_data .get_senators ('CA ' )[1 ]
81+ senator_1 = self .us_data .get_senators ('MA ' )[1 ]
8182 self .assertEqual (senator_1 ['chamber' ], 'senate' )
82- self .assertEqual (senator_1 ['state' ], 'CA ' )
83+ self .assertEqual (senator_1 ['state' ], 'MA ' )
8384 self .assertGreater (len (senator_1 ['offices' ]), 1 )
8485
8586 # make sure we got two different senators...
0 commit comments