'Validate required headers and validate notification headers'

def validate(self):

    for header in self.requiredHeaders:
        if (not self.headers.get(header, False)):
            raise ParseError(('Missing    Registration    Header:    ' + header))
    for notice in self.notifications:
        for header in self.requiredNotification:
            if (not notice.get(header, False)):
                raise ParseError(('Missing    Notification    Header:    ' + header))
