本文整理汇总了Python中pyon.util.containers.DotDict.info方法的典型用法代码示例。如果您正苦于以下问题:Python DotDict.info方法的具体用法?Python DotDict.info怎么用?Python DotDict.info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyon.util.containers.DotDict
的用法示例。
在下文中一共展示了DotDict.info方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_get_dataset_info
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import info [as 别名]
def test_get_dataset_info(self):
coverage = DotDict()
coverage.info = 1
self.dataset_management._get_coverage = Mock()
self.dataset_management._get_coverage.return_value = coverage
retval = self.dataset_management.get_dataset_info('dataset_id')
self.assertEquals(retval,1)
示例2: DotDict
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import info [as 别名]
from pyon.core.object import IonObjectSerializer
from ion.services.coi.service_gateway_service import GATEWAY_RESPONSE, GATEWAY_ERROR, GATEWAY_ERROR_MESSAGE, GATEWAY_ERROR_EXCEPTION
# some stuff for logging info to the console
log = DotDict()
def mk_logger(level):
def logger(fmt, *args):
print "%s %s" % (string.ljust("%s:" % level, 8), (fmt % args))
return logger
log.debug = mk_logger("DEBUG")
log.info = mk_logger("INFO")
log.warn = mk_logger("WARNING")
@attr('INT', group='sa')
class TestAssembly(IonIntegrationTestCase):
"""
assembly integration tests at the service level
"""
def setUp(self):
# Start container
self._start_container()
self.container.start_rel_from_url('res/deploy/r2deploy.yml')
# Now create client to DataProductManagementService
示例3: DotDict
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import info [as 别名]
from interface.services.sa.idata_acquisition_management_service import DataAcquisitionManagementServiceClient
from interface.services.sa.iinstrument_management_service import InstrumentManagementServiceClient
from interface.services.sa.imarine_facility_management_service import MarineFacilityManagementServiceClient
from ion.services.sa.preload.preload_csv import PreloadCSV
# 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")
@unittest.skip("https://github.com/ooici/ion-definitions/pull/94")
class TestLCAServiceGateway(IonIntegrationTestCase):
"""
LCA integration tests at the service gateway level
"""
def setUp(self):
# Start container
self._start_container()
self.container.start_rel_from_url("res/deploy/r2sa.yml")
示例4: DotDict
# 需要导入模块: from pyon.util.containers import DotDict [as 别名]
# 或者: from pyon.util.containers.DotDict import info [as 别名]
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
# some stuff for logging info to the console
log = DotDict()
def mk_logger(level):
def logger(fmt, *args):
print "%s %s" % (string.ljust("%s:" % level, 8), (fmt % args))
return logger
log.debug = mk_logger("DEBUG")
log.info = mk_logger("INFO")
log.warn = mk_logger("WARNING")
@attr('INT', group='sa')
class TestL4CiSaReqs(IonIntegrationTestCase):
"""
assembly integration tests at the service level
"""
def setUp(self):
# Start container
self._start_container()
self.container.start_rel_from_url('res/deploy/r2deploy.yml')
# Now create client to DataProductManagementService