code: def assertHeader(self, name, value=None, *args, **kwargs):
          
          return name in self.raw_headers and (
              True if value is None else self.raw_headers[name] == value)
docs: Returns `True` if ``name`` was in the headers and, if ``value`` is
          True, whether or not the values match, or `False` otherwise.