testenv/conf/expect_header.py
raw| 1 | from conf import rule |
| 2 | |
| 3 | """ Rule: ExpectHeader |
| 4 | This rule defines a dictionary of headers and their value which the server |
| 5 | should expect in each request for the file to which the rule was applied. |
| 6 | """ |
| 7 | |
| 8 | |
| 9 | @rule() |
| 10 | class ExpectHeader: |
| 11 | def __init__(self, header_obj): |
| 12 | self.headers = header_obj |