old_contents: from test_provider_gtfs import SampleGTFSProvider, provider
  
  import pytest
  
  
  @pytest.fixture(scope='module')
  def agency(provider):
      return next(provider.agencies)
  
  
  def test_entity_repr(agency):
      assert 'DTA' in repr(agency)
  
  
  def test_entity_failed_getattr(agency):
      with pytest.raises(AttributeError):
          agency.the_weather_in_london
  
  
  def test_entity_to_dict(agency):
      assert agency.to_dict()['id'] == 'DTA'
  
new_contents: from test_provider_gtfs import provider
  
  import pytest
  
  
  @pytest.fixture(scope='module')
  def agency(provider):
      return next(provider.agencies)
  
  
  def test_entity_repr(agency):
      assert 'DTA' in repr(agency)
  
  
  def test_entity_failed_getattr(agency):
      with pytest.raises(AttributeError):
          agency.the_weather_in_london
  
  
  def test_entity_to_dict(agency):
      assert agency.to_dict()['id'] == 'DTA'
  
subject: Remove unnecessary import from test_entity