<commit_before>#from interface.services.icontainer_agent import ContainerAgentClient
#from pyon.ion.endpoint import ProcessRPCClient
from pyon.public import Container, IonObject
from pyon.util.log import log
from pyon.util.containers import DotDict
from pyon.util.int_test import IonIntegrationTestCase

from interface.services.sa.idata_product_management_service import DataProductManagementServiceClient
from interface.services.sa.idata_acquisition_management_service import DataAcquisitionManagementServiceClient
from interface.services.sa.iinstrument_management_service import InstrumentManagementServiceClient
from interface.services.sa.iobservatory_management_service import ObservatoryManagementServiceClient
from interface.services.dm.ipubsub_management_service import PubsubManagementServiceClient
from interface.services.coi.iresource_registry_service import ResourceRegistryServiceClient

from pyon.core.exception import BadRequest, NotFound, Inconsistent #, Conflict
from pyon.public import RT, LCS, LCE
from pyon.ion.resource import get_maturity_visibility
from nose.plugins.attrib import attr
import unittest

from ion.services.sa.test.helpers import any_old, add_keyworded_attachment
from ion.services.sa.observatory.instrument_site_impl import InstrumentSiteImpl
from ion.services.sa.observatory.platform_site_impl import PlatformSiteImpl
from ion.services.sa.instrument.platform_agent_impl import PlatformAgentImpl
from ion.services.sa.instrument.instrument_device_impl import InstrumentDeviceImpl
from ion.services.sa.instrument.sensor_device_impl import SensorDeviceImpl

from ion.services.sa.instrument.flag import KeywordFlag

from prototype.sci_data.stream_defs import SBE37_CDM_stream_definition, ctd_stream_definition

from coverage_model.parameter import ParameterDictionary, ParameterContext
from coverage_model.parameter_types import QuantityType
from coverage_model.coverage import GridDomain, GridShape, CRS
from coverage_model.basic_types import MutabilityEnum, AxisTypeEnum
from ion.util.parameter_yaml_IO import get_param_dict

# some stuff for logging info to the console
# import sys
# log = DotDict()
# printout = sys.stderr.write
# printout = lambda x: None
#
# log.debug = lambda x: printout("DEBUG: %s\n" % x)
# log.info = lambda x: printout("INFO: %s\n" % x)
# log.warn = lambda x: printout("WARNING: %s\n" % x)



@attr('INT', group='sa')
class TestAssembly(IonIntegrationTestCase):
    """
    assembly integration tests at the service level
    """<commit_msg>Luke: missed one<commit_after>#from interface.services.icontainer_agent import ContainerAgentClient
#from pyon.ion.endpoint import ProcessRPCClient
from pyon.public import IonObject
from pyon.util.log import log
from pyon.util.containers import DotDict
from pyon.util.int_test import IonIntegrationTestCase

from interface.services.sa.idata_product_management_service import DataProductManagementServiceClient
from interface.services.sa.idata_acquisition_management_service import DataAcquisitionManagementServiceClient
from interface.services.sa.iinstrument_management_service import InstrumentManagementServiceClient
from interface.services.sa.iobservatory_management_service import ObservatoryManagementServiceClient
from interface.services.dm.ipubsub_management_service import PubsubManagementServiceClient
from interface.services.coi.iresource_registry_service import ResourceRegistryServiceClient

from pyon.core.exception import BadRequest, NotFound, Inconsistent #, Conflict
from pyon.public import RT, LCS, LCE
from pyon.ion.resource import get_maturity_visibility
from nose.plugins.attrib import attr

from ion.services.sa.test.helpers import any_old, add_keyworded_attachment
from ion.services.sa.observatory.instrument_site_impl import InstrumentSiteImpl
from ion.services.sa.observatory.platform_site_impl import PlatformSiteImpl
from ion.services.sa.instrument.platform_agent_impl import PlatformAgentImpl
from ion.services.sa.instrument.instrument_device_impl import InstrumentDeviceImpl
from ion.services.sa.instrument.sensor_device_impl import SensorDeviceImpl

from ion.services.sa.instrument.flag import KeywordFlag


from coverage_model.coverage import GridDomain, GridShape, CRS
from coverage_model.basic_types import MutabilityEnum, AxisTypeEnum
from ion.util.parameter_yaml_IO import get_param_dict

# some stuff for logging info to the console
# import sys
# log = DotDict()
# printout = sys.stderr.write
# printout = lambda x: None
#
# log.debug = lambda x: printout("DEBUG: %s\n" % x)
# log.info = lambda x: printout("INFO: %s\n" % x)
# log.warn = lambda x: printout("WARNING: %s\n" % x)



@attr('INT', group='sa')
class TestAssembly(IonIntegrationTestCase):
    """
    assembly integration tests at the service level
    """
{'fraction_non_alphanumeric': 0.06519453207150368, 'fraction_numerical': 0.0004206098843322818, 'mean_word_length': 7.2, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '508964', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1292, 'n_words': 339}