def disable_logging():
 flexmock(logging).should_receive('error').and_return()
 flexmock(logging).should_receive('warning').and_return()
 flexmock(logging).should_receive('info').and_return()

def disable_logging ( ) : flexmock ( logging ) . should_receive ( 'error' ) . and_return ( ) flexmock ( logging ) . should_receive ( 'warning' ) . and_return ( ) flexmock ( logging ) . should_receive ( 'info' ) . and_return ( )
mocks out logging for testing output .