import sys
import unittest
from unittest import TestSuite


def suite(test_name):
    suite = unittest.TestSuite()
    suite.addTest(unittest.defaultTestLoader.loadTestsFromName(test_name))
    return suite


if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("Usage {test_name}")
        sys.exit(1)

    runner = unittest.TextTestRunner()
    runner.run(suite(sys.argv[1]))

import sys
import unittest
from unittest import TestSuite


def suite(test_name):
    suite = unittest.TestSuite()
    suite.addTest(unittest.defaultTestLoader.loadTestsFromName(test_name))
    return suite


if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("Usage {test_name}")
        sys.exit(1)

    runner = unittest.TextTestRunner(verbosity=2)
    runner.run(suite(sys.argv[1]))

Change single test verbosity to 2
Change single test verbosity to 2

  import sys
  import unittest
  from unittest import TestSuite
  
  
  def suite(test_name):
      suite = unittest.TestSuite()
      suite.addTest(unittest.defaultTestLoader.loadTestsFromName(test_name))
      return suite
  
  
  if __name__ == "__main__":
      if len(sys.argv) < 2:
          print("Usage {test_name}")
          sys.exit(1)
  
-     runner = unittest.TextTestRunner()
+     runner = unittest.TextTestRunner(verbosity=2)
      runner.run(suite(sys.argv[1]))
  
Change single test verbosity to 2
## Code Before:
import sys
import unittest
from unittest import TestSuite


def suite(test_name):
    suite = unittest.TestSuite()
    suite.addTest(unittest.defaultTestLoader.loadTestsFromName(test_name))
    return suite


if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("Usage {test_name}")
        sys.exit(1)

    runner = unittest.TextTestRunner()
    runner.run(suite(sys.argv[1]))

## Instruction:
Change single test verbosity to 2
## Code After:
import sys
import unittest
from unittest import TestSuite


def suite(test_name):
    suite = unittest.TestSuite()
    suite.addTest(unittest.defaultTestLoader.loadTestsFromName(test_name))
    return suite


if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("Usage {test_name}")
        sys.exit(1)

    runner = unittest.TextTestRunner(verbosity=2)
    runner.run(suite(sys.argv[1]))
