Example #1
0
    def test_driver_enums(self):
        """
        Verify that all driver enumeration has no duplicate values that might cause confusion.  Also
        do a little extra validation for the capabilities
        """
        self.assert_enum_has_no_duplicates(DataParticleType())
        self.assert_enum_has_no_duplicates(ProtocolState())
        self.assert_enum_has_no_duplicates(ProtocolEvent())
        self.assert_enum_has_no_duplicates(Parameter())
        self.assert_enum_has_no_duplicates(InstrumentCommands())

        # Test capabilities for duplicates, them verify that capabilities is a subset of protocol events
        self.assert_enum_has_no_duplicates(Capability())
        self.assert_enum_complete(Capability(), ProtocolEvent())
Example #2
0
from mi.core.exceptions import InstrumentCommandException, SampleException

__author__ = 'Tapana Gupta'
__license__ = 'Apache 2.0'

log = get_logger()

###
#   Driver parameters for the tests
###
InstrumentDriverTestCase.initialize(
    driver_module='mi.instrument.wetlabs.fluorometer.flord_d.driver',
    driver_class="FlordInstrumentDriver",
    instrument_agent_resource_id='3DLE2A',
    instrument_agent_name='wetlabs_fluorometer_flord_d',
    instrument_agent_packet_config=DataParticleType(),
    driver_startup_config={
        DriverConfigKey.PARAMETERS: {
            Parameter.RUN_WIPER_INTERVAL: '00:10:00',
            Parameter.RUN_CLOCK_SYNC_INTERVAL: '00:10:00',
            Parameter.RUN_ACQUIRE_STATUS_INTERVAL: '00:10:00'
        }
    })

#################################### RULES ####################################
#                                                                             #
# Common capabilities in the base class                                       #
#                                                                             #
# Instrument specific in the derived class                                    #
#                                                                             #
# Generator spits out either stubs or comments describing test this here,     #