def __call__(self, *pargs):
        if len(pargs) == 1:
            # One argument - this is either just the header name,
            # or the full header text
            expected = pargs[0].split(':')
        elif len(pargs) == 2:
            # Two arguments - should be header name & header value
            expected = pargs
        else:
            raise Exception('has_header accepts one or two arguments')
        self._expected_name = expected[0]
        try:
            self._expected_value = expected[1].strip()
            self._check_value = True
        except __HOLE__:
            self._check_value = False
        return self
dataset/ETHPy150Open obmarg/flask-should-dsl/flask_should_dsl/matchers.py/HeaderMatcher.__call__