old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  """
  test_{{ cookiecutter.repo_name }}
  ----------------------------------
  
  Tests for `{{ cookiecutter.repo_name }}` module.
  """
  
  import unittest
  
  from {{ cookiecutter.repo_name }} import {{ cookiecutter.repo_name }}
  
  
  class Test{{ cookiecutter.repo_name|capitalize }}(unittest.TestCase):
  
      def setUp(self):
          pass
  
      def test_something(self):
          pass
  
      def tearDown(self):
          pass
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  """
  test_{{ cookiecutter.repo_name }}
  ----------------------------------
  
  Tests for `{{ cookiecutter.repo_name }}` module.
  """
  
  import unittest
  
  from {{ cookiecutter.repo_name }} import {{ cookiecutter.repo_name }}
  
  
  class Test{{ cookiecutter.repo_name|capitalize }}(unittest.TestCase):
  
      def setUp(self):
          pass
  
      def test_something(self):
          pass
  
      def tearDown(self):
          pass
  
subject: remove unittest.main in test file