tests: Add custom header to expected headers
This commit is contained in:
parent
12a8910af2
commit
d7ee3ddb9b
1 changed files with 4 additions and 2 deletions
|
|
@ -141,7 +141,8 @@ class TestSimpleSvnApp(object):
|
|||
}
|
||||
expected_headers = [
|
||||
('MS-Author-Via', 'DAV'),
|
||||
('SVN-Supported-Posts', 'create-txn-with-props')
|
||||
('SVN-Supported-Posts', 'create-txn-with-props'),
|
||||
('X-RhodeCode-Backend', 'svn'),
|
||||
]
|
||||
response_headers = self.app._get_response_headers(headers)
|
||||
assert sorted(response_headers) == sorted(expected_headers)
|
||||
|
|
@ -175,7 +176,8 @@ class TestSimpleSvnApp(object):
|
|||
}
|
||||
expected_response_headers = [
|
||||
('SVN-Supported-Posts', 'create-txn-with-props'),
|
||||
('MS-Author-Via', 'DAV')
|
||||
('MS-Author-Via', 'DAV'),
|
||||
('X-RhodeCode-Backend', 'svn'),
|
||||
]
|
||||
request_mock.assert_called_once_with(
|
||||
self.environment['REQUEST_METHOD'], expected_url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue