

def test_get_context_dict(self):
    ' Test getting a config dict '
    context_dict = self.old_manifest.get_context_dict()
    test_dict = {
        'maven:formula': 'sprinter.formula.unpack',
        'maven:specific_version': '2.10',
        'ant:formula': 'sprinter.formula.unpack',
        'mysql:formula': 'sprinter.formula.package',
        'sub:rc': 'temp=`pwd`; cd %(sub:root_dir)s/libexec && . sub-init2 && cd $tmp',
        'ant:specific_version': '1.8.4',
        'sub:formula': 'sprinter.formula.git',
        'sub:branch': 'yusuke',
        'git:apt-get': 'git-core',
        'sub:url': 'git://github.com/Toumorokoshi/sub.git',
        'ant:phases': 'update',
        'sub:depends': 'git',
        'config:namespace': 'sprinter',
        'sub:bc': 'temp=`pwd`; cd %(sub:testvar)s/libexec && . sub-init2 && cd $tmp',
        'mysql:apt-get': 'libmysqlclient\nlibmysqlclient-dev',
        'mysql:brew': 'mysql',
        'git:brew': 'git',
        'git:formula': 'sprinter.formula.package',
        'config:inputs': 'sourceonly',
    }
    for (k, v) in test_dict.items():
        tools.eq_(context_dict[k], v)
    self.old_manifest.add_additional_context({
        'config:test': 'testing this',
    })
    assert ('config:test' in self.old_manifest.get_context_dict())

dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/core/tests/test_manifest.py TestManifest.test_get_context_dict/original