• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python unit_test.InstrumentDriverTestCase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mi.idk.unit_test.InstrumentDriverTestCase的典型用法代码示例。如果您正苦于以下问题:Python InstrumentDriverTestCase类的具体用法?Python InstrumentDriverTestCase怎么用?Python InstrumentDriverTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了InstrumentDriverTestCase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: tearDown

    def tearDown(self):
        """
        @brief Test teardown
        """
        log.debug("PACClientIntTestCase tearDown")

        InstrumentDriverTestCase.tearDown(self)
开发者ID:cameron55445,项目名称:mi-instrument,代码行数:7,代码来源:test_port_agent_client.py


示例2: DriverUnitTest

#!/usr/bin/env python

from nose.plugins.attrib import attr

from mi.instrument.satlantic.par_ser_600m.driver import PACKET_CONFIG
from mi.instrument.satlantic.par_ser_600m.test.test_driver import SatlanticParProtocolUnitTest
from mi.instrument.satlantic.par_ser_600m.test.test_driver import SatlanticParProtocolIntegrationTest
from mi.instrument.satlantic.par_ser_600m.test.test_driver import SatlanticParProtocolQualificationTest

from mi.idk.unit_test import InstrumentDriverTestCase

InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.satlantic.par_ser_600m.ooicore.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id = 'satlantic_par_ser_600m_ooicore',
    instrument_agent_name = 'satlantic_par_ser_600m_ooicore_agent',
    instrument_agent_packet_config = PACKET_CONFIG,
)

@attr('UNIT', group='mi')
class DriverUnitTest(SatlanticParProtocolUnitTest):
    pass

@attr('INT', group='mi')
class DriverIntegrationTest(SatlanticParProtocolIntegrationTest):
    pass

@attr('QUAL', group='mi')
class DriverQualificationTest(SatlanticParProtocolQualificationTest):
    pass
开发者ID:swarbhanu,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例3: DataParticleType

from mi.instrument.seabird.sbe26plus.driver import ScheduledJob
from mi.instrument.seabird.sbe26plus.driver import Parameter
from mi.idk.unit_test import InstrumentDriverTestCase
from mi.idk.unit_test import DriverStartupConfigKey
from mi.core.driver_scheduler import DriverSchedulerConfigKey

InstrumentDriverTestCase.initialize(
    instrument_agent_resource_id = '123xyz',
    instrument_agent_name = 'Agent007',
    instrument_agent_packet_config = DataParticleType(),

    driver_module='mi.instrument.seabird.sbe26plus.ooicore.driver',
    driver_class="InstrumentDriver",
    driver_startup_config = {
        DriverStartupConfigKey.PARAMETERS: {
            Parameter.TXWAVESTATS: False,
            Parameter.TXREALTIME: True,
            Parameter.TXWAVEBURST: False,
        },
        DriverStartupConfigKey.SCHEDULER: {
            ScheduledJob.ACQUIRE_STATUS: {},
            ScheduledJob.CALIBRATION_COEFFICIENTS: {},
            ScheduledJob.CLOCK_SYNC: {}
        }
    }
)

###############################################################################
#                                UNIT TESTS                                   #
#         Unit tests test the method calls and parameters using Mock.         #
###############################################################################
@attr('UNIT', group='mi')
开发者ID:lytlej,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例4:

from mi.instrument.nortek.aquadopp.ooicore.driver import ProtocolState
from mi.instrument.nortek.aquadopp.ooicore.driver import Parameter

from interface.objects import AgentCommand
from ion.agents.instrument.instrument_agent import InstrumentAgentState
from ion.agents.instrument.direct_access.direct_access_server import DirectAccessTypes

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.nortek.aquadopp.ooicore.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id = 'OQYBVZ',
    instrument_agent_name = 'nortek_aquadopp_ooicore',
    instrument_agent_packet_config = {},
    instrument_agent_stream_definition = {}
)

#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #
# test that there.                                                            #
#                                                                             #
# Qualification tests are driven through the instrument_agent                 #
开发者ID:swarbhanu,项目名称:marine-integrations,代码行数:30,代码来源:test_driver.py


示例5: get_logger

    Protocol

from mi.instrument.seabird.sbe16plus_v2.driver import NEWLINE

log = get_logger()

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.seabird.sbe16plus_v2.dosta.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id='JI22B5',
    instrument_agent_name='seabird_sbe16plus_v2_dosta',
    instrument_agent_packet_config=DataParticleType(),

    driver_startup_config={DriverConfigKey.PARAMETERS: {
        Parameter.VOLT1: True,
        Parameter.OPTODE: True,
    }}
)


###############################################################################
#                                    RULES                                    #
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
开发者ID:oceanobservatories,项目名称:mi-instrument,代码行数:31,代码来源:test_driver.py


示例6: velocity_sample

from mi.instrument.nortek.vector.ooicore.driver import Protocol, DataParticleType, NortekDataParticleType
from mi.instrument.nortek.vector.ooicore.driver import VectorVelocityHeaderDataParticle
from mi.instrument.nortek.vector.ooicore.driver import VectorVelocityHeaderDataParticleKey
from mi.instrument.nortek.vector.ooicore.driver import VectorVelocityDataParticle
from mi.instrument.nortek.vector.ooicore.driver import VectorVelocityDataParticleKey
from mi.instrument.nortek.vector.ooicore.driver import VectorSystemDataParticle
from mi.instrument.nortek.vector.ooicore.driver import VectorSystemDataParticleKey

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.nortek.vector.ooicore.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id='nortek_vector_dw_ooicore',
    instrument_agent_name='nortek_vector_dw_ooicore_agent',
    instrument_agent_packet_config=DataParticleType(),
    driver_startup_config={
        DriverConfigKey.PARAMETERS: {}}
)


# velocity data particle & sample 
def velocity_sample():
    sample_as_hex = "a51000db00008f10000049f041f72303303132120918d8f7"
    return sample_as_hex.decode('hex')

# these values checkout against the sample above
velocity_particle = [{DataParticleKey.VALUE_ID: VectorVelocityDataParticleKey.ANALOG_INPUT2, DataParticleKey.VALUE: 0},
                     {DataParticleKey.VALUE_ID: VectorVelocityDataParticleKey.COUNT, DataParticleKey.VALUE: 219},
                     {DataParticleKey.VALUE_ID: VectorVelocityDataParticleKey.PRESSURE, DataParticleKey.VALUE: 4239},
开发者ID:r-swilderd,项目名称:mi-instrument,代码行数:32,代码来源:test_driver.py


示例7:

from mi.core.exceptions import SampleException

from mi.core.instrument.instrument_driver import ResourceAgentState

# Globals
raw_stream_received = False
parsed_stream_received = False

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.mclane.ras.d1000.driver',
    driver_class="InstrumentDriver",
    instrument_agent_resource_id='DQPJJX',
    instrument_agent_name='mclane_ras_d1000',
    instrument_agent_packet_config=DataParticleType(),
    driver_startup_config={DriverConfigKey.PARAMETERS: {Parameter.SAMPLE_INTERVAL: 6}},
)


#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #
# test that there.                                                            #
#                                                                             #
# Qualification tests are driven through the instrument_agent                 #
开发者ID:r-swilderd,项目名称:mi-instrument,代码行数:31,代码来源:test_driver.py


示例8: DataParticleType

from mi.instrument.subc_control.onecam.ooicore.driver import ProtocolEvent
from mi.instrument.subc_control.onecam.ooicore.driver import Capability
from mi.instrument.subc_control.onecam.ooicore.driver import Parameter
from mi.instrument.subc_control.onecam.ooicore.driver import CAMHDProtocol
from mi.instrument.subc_control.onecam.ooicore.driver import Prompt
from mi.instrument.subc_control.onecam.ooicore.driver import NEWLINE

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.subc_control.onecam.ooicore.driver',
    driver_class="InstrumentDriver",
    instrument_agent_resource_id = '4RKRRG',
    instrument_agent_name = 'subc_control_onecam_ooicore',
    instrument_agent_packet_config = DataParticleType(),

    driver_startup_config = {
        DriverConfigKey.PARAMETERS: {}
    }
)

#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #
# test that there.                                                            #
#                                                                             #
开发者ID:cwingard,项目名称:mi-instrument,代码行数:31,代码来源:test_driver.py


示例9: UnitFromIDK

from nose.plugins.attrib import attr
from mi.instrument.seabird.sbe26plus.test.test_driver import SeaBird26PlusUnitTest
from mi.instrument.seabird.sbe26plus.test.test_driver import SeaBird26PlusIntegrationTest
from mi.instrument.seabird.sbe26plus.test.test_driver import SeaBird26PlusQualificationTest
from mi.instrument.seabird.sbe26plus.driver import DataParticleType
from mi.instrument.seabird.sbe26plus.driver import ScheduledEvents
from mi.idk.unit_test import InstrumentDriverTestCase
from mi.idk.unit_test import DriverStartupConfigKey
from mi.core.driver_scheduler import DriverSchedulerConfigKey

InstrumentDriverTestCase.initialize(
    instrument_agent_resource_id="123xyz",
    instrument_agent_name="Agent007",
    instrument_agent_packet_config=DataParticleType(),
    driver_module="mi.instrument.seabird.sbe26plus.ooicore.driver",
    driver_class="InstrumentDriver",
    driver_startup_config={
        DriverStartupConfigKey.PARAMETERS: {},
        DriverStartupConfigKey.SCHEDULER: {ScheduledEvents.ACQUIRE_STATUS: {DriverSchedulerConfigKey.TRIGGER: {}}},
    },
)

###############################################################################
#                                UNIT TESTS                                   #
#         Unit tests test the method calls and parameters using Mock.         #
###############################################################################
@attr("UNIT", group="mi")
class UnitFromIDK(SeaBird26PlusUnitTest):
    pass

开发者ID:ccenter,项目名称:marine-integrations,代码行数:29,代码来源:test_driver.py


示例10:

from mi.instrument.nortek.particles import AquadoppDataParticleType
from mi.instrument.nortek.test.test_driver import DriverTestMixinSub
from nose.plugins.attrib import attr


__author__ = 'Peter Cable'
__license__ = 'Apache 2.0'


###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.nortek.aquadopp.playback.driver',
    driver_class="InstrumentDriver",
    instrument_agent_resource_id='nortek_aquadopp_dw_playback',
    instrument_agent_name='nortek_aquadopp_dw_playback_agent',
    instrument_agent_packet_config=AquadoppDataParticleType(),
    driver_startup_config={}
)

VELOCITY_SAMPLE = '4 30 2015 23 59 59 0 32 0.135 0.286 -0.729 132 ' + \
                  '135 137 11.6 1484.6 171.8 1.3 0.1 193.357 8.58 0 0 0.316 25.3\r\n'

BAD_SAMPLE = VELOCITY_SAMPLE[5:]


velocity_particle = [{'value_id': 'date_time_string', 'value': '30/04/2015 23:59:59'},
                     {'value_id': 'error_code', 'value': 0},
                     {'value_id': 'analog1', 'value': 0},
                     {'value_id': 'battery_voltage_dV', 'value': 116},
                     {'value_id': 'sound_speed_dms', 'value': 14846},
开发者ID:oceanobservatories,项目名称:mi-instrument,代码行数:32,代码来源:test_driver.py


示例11: DataParticleType

from mi.core.instrument.instrument_driver import ResourceAgentState
from mi.idk.exceptions import IDKException

# Globals
raw_stream_received = False
parsed_stream_received = False

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.star_asimet.bulkmet.metbk_a.driver',
    driver_class="InstrumentDriver",
    instrument_agent_resource_id = 'DQPJJX',
    instrument_agent_name = 'star_aismet_ooicore',
    instrument_agent_packet_config = DataParticleType(),
    driver_startup_config = {
        DriverStartupConfigKey.PARAMETERS: {
            Parameter.SAMPLE_INTERVAL: 20,
        },
    }
)


 #################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #
# test that there.                                                            #
开发者ID:kehunt06,项目名称:mi-instrument,代码行数:32,代码来源:test_driver.py


示例12: DataParticleType

from mi.instrument.noaa.nano.ooicore.driver import NANO_DUMP_SETTINGS

from mi.core.exceptions import SampleException
from mi.core.exceptions import InstrumentStateException
from pyon.agent.agent import ResourceAgentState
from pyon.agent.agent import ResourceAgentEvent
from pyon.core.exception import Conflict

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.noaa.nano.ooicore.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id = '1D644T',
    instrument_agent_name = 'noaa_nano_ooicore',
    instrument_agent_packet_config = DataParticleType(),

    driver_startup_config = {}
)

GO_ACTIVE_TIMEOUT=180

#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #
# test that there.                                                            #
开发者ID:StevenMyerson,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例13:

from pyon.core.exception import InstParameterError


# MI imports.
from ion.agents.port.logger_process import EthernetDeviceLogger
from ion.agents.instrument.instrument_agent import InstrumentAgentState
# next line should match the above line mostly
from mi.instrument.satlantic.isusv3.ooicore.driver import ooicoreParameter

## Initialize the test parameters
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.satlantic.isusv3.ooicore.driver',
    driver_class="ooicoreInstrumentDriver",

    instrument_agent_resource_id = '123xyz',
    instrument_agent_name = 'Agent007',
    #instrument_agent_packet_config = PACKET_CONFIG,
    instrument_agent_stream_definition = ctd_stream_definition(stream_id=None)
)

#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #
# test that there.                                                            #
#                                                                             #
# Qualification tests are driven through the instrument_agent                 #
开发者ID:newbrough,项目名称:marine-integrations,代码行数:30,代码来源:test_driver.py


示例14:

antelope_startup_config = {
        DriverConfigKey.PARAMETERS: {
            Parameter.REFDES: 'test',
            Parameter.SOURCE_REGEX: '.*',
            Parameter.FILE_LOCATION: './antelope_data',
        }
}

# ##
# Driver parameters for the tests
# ##
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.antelope.orb.ooicore.driver',
    driver_class="InstrumentDriver",
    instrument_agent_resource_id='NCC1701',
    instrument_agent_name='antelope_orb_ooicore',
    instrument_agent_packet_config=[],
    driver_startup_config=antelope_startup_config
)

GO_ACTIVE_TIMEOUT = 180

#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #
# test that there.                                                            #
#                                                                             #
开发者ID:danmergens,项目名称:mi-instrument,代码行数:31,代码来源:test_driver.py


示例15:

InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.uw.hpies.ooicore.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id='VXVOO1',
    instrument_agent_name='uw_hpies_ooicore',
    instrument_agent_packet_config=DataParticleType(),

    driver_startup_config={DriverConfigKey.PARAMETERS: {
        Parameter.DEBUG_LEVEL: 0,
        Parameter.WSRUN_PINCH: 120,
        Parameter.NFC_CALIBRATE: 60,
        Parameter.CAL_HOLD: 19.97,
        Parameter.NHC_COMPASS: 122,
        Parameter.COMPASS_SAMPLES: 1,
        Parameter.COMPASS_DELAY: 10,
        Parameter.MOTOR_SAMPLES: 10,
        Parameter.EF_SAMPLES: 10,
        Parameter.CAL_SAMPLES: 10,
        Parameter.CONSOLE_TIMEOUT: 300,
        Parameter.WSRUN_DELAY: 0,
        Parameter.MOTOR_DIR_NHOLD: 0,
        Parameter.MOTOR_DIR_INIT: 'f',
        Parameter.POWER_COMPASS_W_MOTOR: False,
        Parameter.KEEP_AWAKE_W_MOTOR: True,
        Parameter.MOTOR_TIMEOUTS_1A: 200,
        Parameter.MOTOR_TIMEOUTS_1B: 200,
        Parameter.MOTOR_TIMEOUTS_2A: 200,
        Parameter.MOTOR_TIMEOUTS_2B: 200,
        Parameter.RSN_CONFIG: True,
        Parameter.INVERT_LED_DRIVERS: False,
        Parameter.M1A_LED: 1,
        Parameter.M2A_LED: 3,
    }
    }
)
开发者ID:danmergens,项目名称:marine-integrations,代码行数:36,代码来源:test_driver.py


示例16: SatlanticParProtocolUnitTest

from mi.instrument.satlantic.par_ser_600m.ooicore.driver import Command
from mi.instrument.satlantic.par_ser_600m.ooicore.driver import SatlanticChecksumDecorator
from mi.instrument.satlantic.par_ser_600m.ooicore.driver import sample_regex

mi_logger = logging.getLogger('mi_logger')

# Make tests verbose and provide stdout
# bin/nosetests -s -v ion/services/mi/drivers/test/test_satlantic_par.py
# All unit tests: add "-a UNIT" to end, integration add "-a INT"
# Test device is at 10.180.80.173, port 2001

InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.satlantic.par_ser_600m.ooicore.driver',
    driver_class="SatlanticPARInstrumentDriver",

    instrument_agent_resource_id = 'satlantic_par_ser_600m_ooicore',
    instrument_agent_name = 'satlantic_par_ser_600m_ooicore_agent',
    #instrument_agent_packet_config = PACKET_CONFIG,
    #instrument_agent_stream_definition = ctd_stream_definition(stream_id=None)
)

@unittest.skip("Need better mocking of FSM or smaller testing chunks")
@attr('UNIT', group='mi')
class SatlanticParProtocolUnitTest(InstrumentDriverUnitTestCase):
    """
    @todo test timeout exceptions while transitioning states and handling commands
    """
        
    def setUp(self):
        def response_side_effect(*args, **kwargs):
            if args[0] == Command.SAMPLE:
开发者ID:newbrough,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例17: short_sample

from mi.instrument.wetlabs.ac_s.ooicore.driver import Protocol
from mi.instrument.wetlabs.ac_s.ooicore.driver import Prompt
from mi.instrument.wetlabs.ac_s.ooicore.driver import NEWLINE
from mi.instrument.wetlabs.ac_s.ooicore.driver import OptaaSampleDataParticleKey
from mi.instrument.wetlabs.ac_s.ooicore.driver import OptaaSampleDataParticle
from mi.instrument.wetlabs.ac_s.ooicore.driver import OptaaStatusDataParticleKey

from mi.core.exceptions import SampleException

from pyon.agent.agent import ResourceAgentState


InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.wetlabs.ac_s.ooicore.driver',
    driver_class="InstrumentDriver",
    instrument_agent_resource_id='DQPJJX',
    instrument_agent_name='wetlabs_ac_s_ooicore',
    instrument_agent_packet_config=DataParticleType(),
    driver_startup_config={}
)


def short_sample():
    short_sample_values = "FF 00 FF 00  02 A8 05 01  53 00 00 82  01 CE FF FF \
                           02 B0 6E 47  A8 4F 01 D5  02 \
                           BD 00 00 28  4D 01 51 05  6F 04 F9 04  C9 03 96 06 \
                           60 05 DB 05  BF 04 87 07  61 06 D0 06  CF 05 8B 08 \
                           78 07 DC 07  F8 06 A0 09  A9 09 00 09  41 07 CA 0B \
                           01 0A 48 0A  B3 09 15 0C  7C 0B B3 0C  57 0A 85 0E \
                           1B 0D 43 0E  20 0C 1C 0F  DC 0E F1 10  16 0D D8 11 \
                           B4 10 BB 12  2C 0F B4 13  9C 12 97 14  5A 11 AC 15 \
                           9A 14 8E 16  A5 13 C3 17  AA 16 94 19  09 15 F4 19 \
开发者ID:NickAlmonte,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例18: eng_id_sample

from mi.instrument.nortek.test.test_driver import NortekUnitTest, NortekIntTest, NortekQualTest, user_config2
from mi.instrument.nortek.driver import ProtocolState, ProtocolEvent, TIMEOUT, Parameter, NortekEngIdDataParticleKey, \
    NortekInstrumentProtocol, NEWLINE, EngineeringParameter

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.nortek.aquadopp.ooicore.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id='nortek_aquadopp_dw_ooicore',
    instrument_agent_name='nortek_aquadopp_dw_ooicore_agent',
    instrument_agent_packet_config=NortekDataParticleType(),
    driver_startup_config={
        DriverConfigKey.PARAMETERS: {
            Parameter.DEPLOYMENT_NAME: 'test',
            Parameter.COMMENTS: 'this is a test',
            #update the following two parameters to allow for faster collecting of samples during testing
            Parameter.AVG_INTERVAL: 1,
            Parameter.MEASUREMENT_INTERVAL: 1}}
)


def eng_id_sample():
    sample_as_hex = "415144"
    return sample_as_hex.decode('hex')

eng_id_particle = [{DataParticleKey.VALUE_ID: NortekEngIdDataParticleKey.ID, DataParticleKey.VALUE: "AQD 8493      "}]
开发者ID:r-swilderd,项目名称:mi-instrument,代码行数:29,代码来源:test_driver.py


示例19:

from mi.instrument.um.thsph.ooicore.driver import NEWLINE


from mi.core.instrument.instrument_driver import ResourceAgentState

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.um.thsph.ooicore.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id='WHSSRV',
    instrument_agent_name='um_thsph_ooicore',
    instrument_agent_packet_config=DataParticleType(),

    driver_startup_config={
        DriverStartupConfigKey.PARAMETERS: {
            Parameter.INTERVAL: 6,
            Parameter.INSTRUMENT_SERIES: 'A',
        }
    }
)

GO_ACTIVE_TIMEOUT = 180
TEST_POLLED_INTERVAL = 12
TEST_INSTRUMENT_SERIES = 'A'
TEST_INVALID_POLLED_INTERVAL = 601
#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
开发者ID:kehunt06,项目名称:mi-instrument,代码行数:31,代码来源:test_driver.py


示例20:

from mi.instrument.sunburst.sami2_ph.ooicore.driver import PhsenConfigDataParticleKey
from mi.instrument.sunburst.sami2_ph.ooicore.driver import PhsenSamiSampleDataParticleKey
from mi.instrument.sunburst.sami2_ph.ooicore.driver import ProtocolState
from mi.instrument.sunburst.sami2_ph.ooicore.driver import ProtocolEvent
from mi.instrument.sunburst.sami2_ph.ooicore.driver import Protocol
from mi.instrument.sunburst.test.test_driver import SamiMixin
from mi.instrument.sunburst.test.test_driver import SamiUnitTest

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.sunburst.sami2_ph.ooicore.driver',
    driver_class="InstrumentDriver",

    instrument_agent_resource_id='ZY4I90',
    instrument_agent_name='sunburst_sami2_ph_ooicore',
    instrument_agent_packet_config=DataParticleType(),

    driver_startup_config={}
)

#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific stuff in the derived class                              #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #
# test that there.                                                            #
#                                                                             #
# Qualification tests are driven through the instrument_agent                 #
开发者ID:StevenMyerson,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py



注:本文中的mi.idk.unit_test.InstrumentDriverTestCase类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python config.add_configuration函数代码示例发布时间:2022-05-27
下一篇:
Python unit_test.InstrumentDriverQualificationTestCase类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap