text: from unittest.mock import patch
  import unittest
  from unittest.mock import patch
  from question2 import factorial, factorialSuggested
  
  class TestFactorial(unittest.TestCase):
      @patch('builtins.input', lambda *args:8)
      def test_output(self):        
          #output = factorial(8)
          self.assertEqual (40320, factorial(), "should be 40320")
  
      @patch('builtins.input', lambda *args: 8)
      def test_outputSuggested(self):
          #output = factorial(8)
          self.assertEqual(40320, factorialSuggested(), "should be 40320")
          
  
  """
  if __name__ == '__main__': unittest.main()
  """
  suite = unittest.TestLoader().loadTestsFromTestCase(TestFactorial)
  unittest.TextTestRunner(verbosity=2).run(suite)
  