old_contents: import os
  import subprocess
  import unittest
  
  class TestGcloud(unittest.TestCase):
      def test_version(self):
          result = subprocess.run([
                  'gcloud',
                  '--version',
              ],
              stdout=subprocess.PIPE,
          )
  
          self.assertEqual(0, result.returncode)
          self.assertIn(b'Google Cloud SDK', result.stdout)
  
new_contents: import os
  import subprocess
  import unittest
  
  class TestGcloud(unittest.TestCase):
      def test_version(self):
          result = subprocess.run([
                  'gcloud',
                  'version',
              ],
              stdout=subprocess.PIPE,
          )
  
          self.assertIn(b'Google Cloud SDK', result.stdout)
  
subject: check output since gcloud