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

All Samples(27)  |  Call(26)  |  Derive(0)  |  Import(1)
Template represents a dict which may or may not refer to data from
other dicts.

Example:

.. code-block:: python

    # Data to be used in host1 and host2
    common = Template('common', {
        "timeout": 42(more...)

src/b/o/boaconstructor-0.3.0/lib/boaconstructor/tests/testboaconstructor.py   boaconstructor(Download)
import boaconstructor
from boaconstructor import utils
from boaconstructor import Template
from boaconstructor.utils import what_is_required
 
        # Use machine as base and override the host and timeout:
        test1 = Template(
            'test1',
            {
                'This is a comment.': 'derivefrom.[machine]',
        # Use machine as base and override the host and timeout:
        test1 = Template(
            'test1',
            {
                'This is a comment.': 'derivefrom.[something]',
        self.assertRaises(utils.AttributeError, utils.get, ddict, 'b')
 
        test1 = Template('test1', dict(
            a=1
        ))
        # Use machine as base and override the host and timeout:
        test1 = Template(
            'test1',
            {
                '1. a': 'derivefrom.[machine]',