arjuna.tpi.httpauto.packet module

class arjuna.tpi.httpauto.packet.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.

property headers: dict

HTTP Headers for this message.