Example #1
0
 def test_get_current_representatives_for_state(self):
     """
     Get all currently serving representatives for a specific state.
     """
     chamber = 'house'
     sc_representatives = get_current_members_of_congress(state=self.state,
                                                          chamber=chamber)
     self.assertEqual(7, len(sc_representatives))
Example #2
0
 def test_get_current_representatives_for_state(self):
     """
     Get all currently serving representatives for a specific state.
     """
     chamber = 'house'
     sc_representatives = get_current_members_of_congress(state=self.state,
                                                          chamber=chamber)
     self.assertEqual(7, len(sc_representatives))
Example #3
0
 def test_get_current_senators_for_state(self):
     """
     Get all currently serving senators for a specific state.
     """
     chamber = 'senate'
     sc_senators = get_current_members_of_congress(state=self.state,
                                                   chamber=chamber)
     self.assertEqual(2, len(sc_senators))
Example #4
0
 def test_get_current_senators_for_state(self):
     """
     Get all currently serving senators for a specific state.
     """
     chamber = 'senate'
     sc_senators = get_current_members_of_congress(state=self.state,
                                                   chamber=chamber)
     self.assertEqual(2, len(sc_senators))