tests: Add custom header to expected headers

This commit is contained in:
Martin Bornhold 2016-08-09 16:33:38 +02:00
parent 12a8910af2
commit d7ee3ddb9b

View file

@ -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,