

@staticmethod
def _first_contains_second(first, second):
    '\n        :param first dict\n        :param second dict\n        :return True if first has all keys from second and that they have same value\n        '
    if ((not isinstance(first, dict)) or (not isinstance(second, dict))):
        raise WrongDataTypeError('Both arguments should be dict')
    result = all((((k in first) and (first[k] == second[k])) for k in second))
    return result

dataset/ETHPy150Open stardust85/repositorytools/repositorytools/lib/repository.py NexusRepositoryClient._first_contains_second/original