old_contents: """Test conformance to pep8 and pep257."""
  from unittest import TestCase
  from os import path
  
  from EasyClangComplete.plugin.tools import Tools
  
  PEP257_CMD = "pep257 {} --match-dir='^(?!clang$).*' --ignore=D204,D203,D209"
  PEP8_CMD = "pep8 {} --exclude=clang --count --max-line-length=80"
  
  PLUGIN_SOURCE_FOLDER = path.dirname(path.dirname(__file__))
  
  
  class TestStyle(TestCase):
      """Test that the code conforms to pep8 and pep257."""
  
      def test_pep8(self):
          """Test conformance to pep8."""
          cmd = PEP8_CMD.format(PLUGIN_SOURCE_FOLDER)
          output = Tools.run_command(cmd)
          print(output)
          self.assertTrue(len(output) == 0)
  
      def test_pep257(self):
          """Test conformance to pep257."""
          cmd = PEP257_CMD.format(PLUGIN_SOURCE_FOLDER)
          output = Tools.run_command(cmd)
          print(output)
          self.assertTrue(len(output) == 0)
  
new_contents: """Test conformance to pep8 and pep257."""
  from unittest import TestCase
  from os import path
  
  from EasyClangComplete.plugin.tools import Tools
  
  PEP257_CMD = "pep257 {} --match-dir='^(?!clang$).*' --ignore=D204,D203,D209"
  PEP8_CMD = "pep8 {} --exclude=clang --count --max-line-length=80"
  
  PLUGIN_SOURCE_FOLDER = path.dirname(path.dirname(__file__))
  
  
  class TestStyle(TestCase):
      """Test that the code conforms to pep8 and pep257."""
  
      def test_pep8(self):
          """Test conformance to pep8."""
          cmd = PEP8_CMD.format(PLUGIN_SOURCE_FOLDER)
          output = Tools.run_command(cmd)
          print(output)
          if 'command not found' in output:
              print('no pep8 found in path!')
              return
          self.assertTrue(len(output) == 0)
  
      def test_pep257(self):
          """Test conformance to pep257."""
          cmd = PEP257_CMD.format(PLUGIN_SOURCE_FOLDER)
          output = Tools.run_command(cmd)
          print(output)
          if 'command not found' in output:
              print('no pep257 found in path!')
              return
          self.assertTrue(len(output) == 0)
  
subject: allow skipping the style tests