old_contents: """develop tests
  """
  import os
  import re
  
  import pytest
  import mock
  
  from setuptools.dist import Distribution
  
  from . import contexts
  
  
  SETUP_PY = """\
  from setuptools import setup
  
  setup(name='foo', py_modules=['hi'])
  """
  
  @pytest.yield_fixture
  def user_override():
      """
      Override site.USER_BASE and site.USER_SITE with temporary directories in
      a context.
      """
      with contexts.tempdir() as user_base:
          with mock.patch('site.USER_BASE', user_base):
              with contexts.tempdir() as user_site:
                  with mock.patch('site.USER_SITE', user_site):
                      yield
  
  
  @pytest.yield_fixture
  def setup_context(tmpdir):
      with (tmpdir/'setup.py').open('w') as f:
          f.write(SETUP_PY)
      with (tmpdir/'hi.py').open('w') as f:
          f.write('1\n')
      with tmpdir.as_cwd():
          yield tmpdir
  
  
  class TestDevelopTest:
      def test_bdist_egg(self, setup_context, user_override):
          dist = Distribution(dict(
              script_name='setup.py',
              script_args=['bdist_egg'],
              name='foo',
              py_modules=['hi']
              ))
          os.makedirs(os.path.join('build', 'src'))
          with contexts.quiet():
              dist.parse_command_line()
              dist.run_commands()
  
          # let's see if we got our egg link at the right place
          [content] = os.listdir('dist')
          assert re.match('foo-0.0.0-py[23].\d.egg$', content)
  
new_contents: """develop tests
  """
  import os
  import re
  
  import pytest
  import mock
  
  from setuptools.dist import Distribution
  
  from . import contexts
  
  
  SETUP_PY = """\
  from setuptools import setup
  
  setup(name='foo', py_modules=['hi'])
  """
  
  @pytest.yield_fixture
  def user_override():
      """
      Override site.USER_BASE and site.USER_SITE with temporary directories in
      a context.
      """
      with contexts.tempdir() as user_base:
          with mock.patch('site.USER_BASE', user_base):
              with contexts.tempdir() as user_site:
                  with mock.patch('site.USER_SITE', user_site):
                      yield
  
  
  @pytest.yield_fixture
  def setup_context(tmpdir):
      with (tmpdir/'setup.py').open('w') as f:
          f.write(SETUP_PY)
      with (tmpdir/'hi.py').open('w') as f:
          f.write('1\n')
      with tmpdir.as_cwd():
          yield tmpdir
  
  
  class Test:
      def test_bdist_egg(self, setup_context, user_override):
          dist = Distribution(dict(
              script_name='setup.py',
              script_args=['bdist_egg'],
              name='foo',
              py_modules=['hi']
              ))
          os.makedirs(os.path.join('build', 'src'))
          with contexts.quiet():
              dist.parse_command_line()
              dist.run_commands()
  
          # let's see if we got our egg link at the right place
          [content] = os.listdir('dist')
          assert re.match('foo-0.0.0-py[23].\d.egg$', content)
  
subject: Correct naming artifact.