Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/m/i/milkcheck-HEAD/lib/MilkCheck/Config/Configuration.py   milkcheck(Download)
                elif elem == 'service' and 'actions' in subelems:
                    ser = Service(subelems['name'])
                    ser.fromdict(subelems)
                    wrap = self._parse_deps(subelems)
                    wrap.source = ser
                    dependencies[ser.name] = wrap
                # Parse service group
                elif elem == 'service' and 'services' in subelems:
                    ser = ServiceGroup(subelems['name'])
                    ser.fromdict(subelems)

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/EngineTests/ServiceGroupTest.py   milkcheck(Download)
    def test_fromdict1(self):
        '''Test instanciation of a service group from a dictionnary'''
        sergrp = ServiceGroup('S1')
        sergrp.fromdict(
           {'services':
    def test_fromdict_before(self):
        """Test 'before' as an alias of 'require_weak'"""
        grp = ServiceGroup('grp')
        grp.fromdict({
            'services': {
        sergrp = ServiceGroup('S1')
        sergrp.fromdict(
            {'services':
                {'hpss_nfs':
                    {'target': 'localhost',
    def test_create_service_imbrications(self):
        '''Test create service with mutliple level of subservices'''
        sergrp = ServiceGroup('groupinit')
        sergrp.fromdict(
            {'services':
    def test_inheritance(self):
        '''Test properties inherited from ServiceGroup to Service and Action'''
        sergrp = ServiceGroup('groupinit')
        sergrp.fromdict(
            {'services':

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/ServiceManagerTest.py   milkcheck(Download)
        sergrp = ServiceGroup('S1')
        sergrp.fromdict(
           {'services':
                {'srv1':
                     {'target': 'localhost',