Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, schema):
BaseMatcher.__init__(self, schema)
if isinstance(schema, str):
self.expectation = json.loads(schema)
def __init__(self, headers):
if not isinstance(headers, dict):
raise TypeError('headers must be a dictionary')
BaseMatcher.__init__(self, headers)
def __init__(self, data):
BaseMatcher.__init__(self, data)
if isinstance(data, str):
self.expectation = xmltodict.parse(data)
def __init__(self, data):
BaseMatcher.__init__(self, data)
if isinstance(data, str):
self.expectation = json.loads(data)