7a5b61c2d5
After much discussion this was determined to be the easiest and cleanest way to accomplish a test which asserts "this header must not be present". The ResponseHandler framework is used to good effect to make short code. The value of the response_forbidden_headers is a list of headers. Case will be normalized to lower, which matches the internal representation of the response headers dictionary. Fixes #108
14 lines
409 B
Bash
Executable File
14 lines
409 B
Bash
Executable File
#!/bin/bash -e
|
|
# Run the tests and confirm that the stuff we expect to skip or fail
|
|
# does.
|
|
|
|
GREP_FAIL_MATCH='expected failures=11,'
|
|
GREP_SKIP_MATCH='skipped=2,'
|
|
GREP_UXSUC_MATCH='unexpected successes=1'
|
|
|
|
python setup.py testr && \
|
|
for match in "${GREP_FAIL_MATCH}" "${GREP_UXSUC_MATCH}" "${GREP_SKIP_MATCH}"; do
|
|
testr last --subunit | subunit2pyunit 2>&1 | \
|
|
grep "${match}"
|
|
done
|