Beispiel #1
0
 def test_debug(self):
     try:
         from Zope2.utilities.zconsole import debug
         sys.stdout = StringIO()
         got = debug(self.zopeconf)
         expected = '<Application at >'
     finally:
         sys.argv = self.stored_sys_argv
         sys.stdout = self.stored_stdout
     self.assertEqual(expected, str(got))
Beispiel #2
0
 def test_debug(self):
     try:
         from Zope2.utilities.zconsole import debug
         sys.stdout = StringIO()
         got = debug(self.zopeconf)
         expected = '<Application at >'
     finally:
         sys.argv = self.stored_sys_argv
         sys.stdout = self.stored_stdout
     self.assertEqual(expected, str(got))