@staticmethod
    def _first_contains_second(first, second):

        # to protect a user from hard-to-debug problems with incorrect data type
        # once I sent here a string with serialized dict and it took me hours to find the bug!
        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
Return string object.
dataset/ETHPy150Open stardust85/repositorytools/repositorytools/lib/repository.py/NexusRepositoryClient._first_contains_second--crossover with--dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py/DbfCharacterFieldDef.decodeValue