def validate(self):
        # check if required_fields aren't present
        for field in set(self.required_fields) - set(self.request_data):
            if not isinstance(field, string_types):
                # field was a collection, iterate over it and check by OR
                return bool(set(field) & set(self.request_data))
            return False
        return True
Compare two lists (or iterable) for differences
dataset/ETHPy150Open jasonkeene/python-ubersmith/ubersmith/calls/__init__.py/BaseCall.validate--crossover with--dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/util/misc.py/islistsimilar