arjuna.tpi.httpauto.message module

class arjuna.tpi.httpauto.message.CookieValidator(session, cookie_yaml)

Bases: arjuna.tpi.engine.asserter.AsserterMixIn

class arjuna.tpi.httpauto.message.HttpPacket(http_msg)

Bases: arjuna.tpi.engine.asserter.AsserterMixIn

assert_empty_content(*, msg)

Validates if content is empty.

Keyword Arguments:
 msg – A context string explaining why this assertion was done.
assert_header_match(header, value=None, *, msg)

Validates the presence and optionally the value of an HTTP Header.

Parameters:
  • header – Name of header
  • value – Text contained in header. If not provided, then only presence of header is checked.
Keyword Arguments:
 

msg – A context string explaining why this assertion was done.

assert_header_mismatch(header, value=None, *, msg)

Validates the absence of header or mismatch of its content with provided value.

Parameters:
  • header – Name of header
  • value – Text contained in header. If not provided, then only absence of header is checked.
Keyword Arguments:
 

msg – A context string explaining why this assertion was done.

assert_non_empty_content(*, msg)

Validates if content is empty.

Keyword Arguments:
 msg – A context string explaining why this assertion was done.
headers

HTTP Headers for this message.

class arjuna.tpi.httpauto.message.JsonValidator(response, json_yaml)

Bases: arjuna.tpi.engine.asserter.AsserterMixIn