old_contents: from unittest import TestCase
  
  from semantic_release.pypi import upload_to_pypi
  
  from . import mock
  
  
  class PypiTests(TestCase):
      @mock.patch('semantic_release.pypi.run')
      def test_upload_without_arguments(self, mock_run):
          upload_to_pypi(username='username', password='password')
          self.assertEqual(
              mock_run.call_args_list,
              [
                  mock.call('rm -rf dist'),
                  mock.call('python setup.py sdist bdist_wheel'),
                  mock.call('twine upload -u username -p password  dist/*'),
                  mock.call('rm -rf dist')
              ]
          )
  
      @mock.patch('semantic_release.pypi.run')
      def test_upload_without_arguments(self, mock_run):
          upload_to_pypi(username='username', password='password', remove_dist=False)
          self.assertEqual(
              mock_run.call_args_list,
              [
                  mock.call('python setup.py sdist bdist_wheel'),
                  mock.call('twine upload -u username -p password  dist/*'),
              ]
          )
  
      @mock.patch('semantic_release.pypi.run')
      def test_upload_with_custom_path(self, mock_run):
          upload_to_pypi(path='custom-dist', username='username', password='password')
          args = mock_run.call_args_list
          self.assertEqual(args[0], mock.call('rm -rf custom-dist'),)
          self.assertEqual(args[1], mock.call('python setup.py sdist bdist_wheel'),)
          self.assertEqual(args[2], mock.call(
              'twine upload -u username -p password  custom-dist/*'),)
          self.assertEqual(args[3], mock.call('rm -rf custom-dist'))
  
new_contents: from unittest import TestCase
  
  from semantic_release.pypi import upload_to_pypi
  
  from . import mock
  
  
  class PypiTests(TestCase):
      @mock.patch('semantic_release.pypi.run')
      def test_upload_without_arguments(self, mock_run):
          upload_to_pypi(username='username', password='password')
          self.assertEqual(
              mock_run.call_args_list,
              [
                  mock.call('rm -rf dist'),
                  mock.call('python setup.py sdist bdist_wheel'),
                  mock.call('twine upload -u username -p password  dist/*'),
                  mock.call('rm -rf dist')
              ]
          )
  
      @mock.patch('semantic_release.pypi.run')
      def test_upload_without_removing_dist(self, mock_run):
          upload_to_pypi(username='username', password='password', remove_dist=False)
          self.assertEqual(
              mock_run.call_args_list,
              [
                  mock.call('python setup.py sdist bdist_wheel'),
                  mock.call('twine upload -u username -p password  dist/*'),
              ]
          )
  
      @mock.patch('semantic_release.pypi.run')
      def test_upload_with_custom_path(self, mock_run):
          upload_to_pypi(path='custom-dist', username='username', password='password')
          args = mock_run.call_args_list
          self.assertEqual(args[0], mock.call('rm -rf custom-dist'),)
          self.assertEqual(args[1], mock.call('python setup.py sdist bdist_wheel'),)
          self.assertEqual(args[2], mock.call(
              'twine upload -u username -p password  custom-dist/*'),)
          self.assertEqual(args[3], mock.call('rm -rf custom-dist'))
  
subject: Fix test name