##// END OF EJS Templates
tests: Add custom header to expected headers
Martin Bornhold -
r611:b6047654 default
parent child Browse files
Show More
@@ -141,7 +141,8 b' class TestSimpleSvnApp(object):'
141 141 }
142 142 expected_headers = [
143 143 ('MS-Author-Via', 'DAV'),
144 ('SVN-Supported-Posts', 'create-txn-with-props')
144 ('SVN-Supported-Posts', 'create-txn-with-props'),
145 ('X-RhodeCode-Backend', 'svn'),
145 146 ]
146 147 response_headers = self.app._get_response_headers(headers)
147 148 assert sorted(response_headers) == sorted(expected_headers)
@@ -175,7 +176,8 b' class TestSimpleSvnApp(object):'
175 176 }
176 177 expected_response_headers = [
177 178 ('SVN-Supported-Posts', 'create-txn-with-props'),
178 ('MS-Author-Via', 'DAV')
179 ('MS-Author-Via', 'DAV'),
180 ('X-RhodeCode-Backend', 'svn'),
179 181 ]
180 182 request_mock.assert_called_once_with(
181 183 self.environment['REQUEST_METHOD'], expected_url,
General Comments 0
You need to be logged in to leave comments. Login now