old_contents: # -*- coding: utf-8 -*-
  
  import unittest
  
  from nikola.plugins.command.version import CommandVersion
  
  
  class CommandVersionCallTest(unittest.TestCase):
      def test_version(self):
          """Test `nikola version`."""
          CommandVersion().execute()
  
new_contents: # -*- coding: utf-8 -*-
  
  from nikola.plugins.command.version import CommandVersion
  
  
  def test_version():
      """Test `nikola version`."""
      CommandVersion().execute()
  
subject: Switch test to pytest.