oct.testing package¶
Module contents¶
-
oct.testing.content.
must_contain
(resp, pattern)¶ Test if the pattern is in content
Parameters: - pattern (str) – pattern to find
- resp – a response object
Returns: None
Raise: AssertionError
-
oct.testing.content.
must_not_contain
(resp, pattern)¶ Test if the pattern is not in content
Parameters: - pattern (str) – pattern to find
- resp – a response object
Returns: None
Raise: AssertionError
-
oct.testing.response.
check_response_status
(resp, status)¶ This will check is the response_code is equal to the status
Parameters: - resp – a response object
- status (int) – the expected status
Returns: None
Raise: AssertionError