def testDumperLog(self): from Products.LongRequestLogger.dumper import Dumper dumper = Dumper() # check the dumper will log what we expect when called dumper() check_log(str(self.loghandler))
def testRequestFormating(self): from Products.LongRequestLogger.dumper import Dumper dumper = Dumper() request = self.makeRequest('/foo/bar') check_request_formating(dumper.format_request(request))
def testDumperFormat(self): from Products.LongRequestLogger.dumper import Dumper dumper = Dumper() check_dump(dumper.format_thread())
def callable(): dumper = Dumper() frame = sys._current_frames()[dumper.thread_id] return dumper.extract_request(frame)
def callable(): dumper = Dumper() return dumper.extract_request(dumper.get_top_thread_frame())