def test_venue_result(self):
        mock_response = create_mock_json('tests/resources/list_venues.json')
        venue_results = mock_response.json().get('result')

        for venue_result in venue_results:
            resource = resources.VenueResult(elapsed_time=self.ELAPSED_TIME,
                                             **venue_result)

            assert resource.elapsed_time == self.ELAPSED_TIME
            assert resource.market_count == venue_result['marketCount']
            assert resource.venue == venue_result['venue']
    def test_venue_result(self):
        mock_response = create_mock_json('tests/resources/list_venues.json')
        venue_results = mock_response.json().get('result')

        for venue_result in venue_results:
            resource = resources.VenueResult(date_time_sent=self.DATE_TIME_SENT,
                                             **venue_result)

            assert resource._datetime_sent == self.DATE_TIME_SENT
            assert resource.market_count == venue_result['marketCount']
            assert resource.venue == venue_result['venue']