#NEWLINE# def test_setup_ro_pipe_handler( self ) : #NEWLINE# #INDENT# serial_port_mapping = { #NEWLINE# #INDENT# constants . SERIAL_PORT_TYPE_RW : mock . sentinel . pipe_path , #NEWLINE# #UNINDENT# } #NEWLINE# mock_get_handler = self . _mock_setup_named_pipe_handlers ( serial_port_mapping = mock_get_handler ) #NEWLINE# mock_get_handler . assert_called_once_with ( mock . sentinel . pipe_path , pipe_type = constants . SERIAL_PORT_TYPE_RW , enable_logging = True )