Mercurial > p > roundup > code
comparison test/rest_common.py @ 6312:6ef7b66774b4
Fix test. Env without xml fails due to added ,
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 01 Jan 2021 17:55:12 -0500 |
| parents | be8d5a8e090a |
| children | a2fbd3592322 |
comparison
equal
deleted
inserted
replaced
| 6311:be8d5a8e090a | 6312:6ef7b66774b4 |
|---|---|
| 1405 "/rest/data/issue", | 1405 "/rest/data/issue", |
| 1406 form) | 1406 form) |
| 1407 | 1407 |
| 1408 print(results) | 1408 print(results) |
| 1409 self.assertEqual(self.server.client.response_code, 406) | 1409 self.assertEqual(self.server.client.response_code, 406) |
| 1410 self.assertIn(b"Requested content type 'application/zot; version=1; q=0.5' is not available.\nAcceptable types: */*, application/json,", results) | 1410 self.assertIn(b"Requested content type 'application/zot; version=1; q=0.5' is not available.\nAcceptable types: */*, application/json", results) |
| 1411 | 1411 |
| 1412 # simulate: /rest/data/issue works, multiple acceptable output, one | 1412 # simulate: /rest/data/issue works, multiple acceptable output, one |
| 1413 # is valid | 1413 # is valid |
| 1414 env = { "CONTENT_TYPE": "application/json", | 1414 env = { "CONTENT_TYPE": "application/json", |
| 1415 "CONTENT_LENGTH": len(body), | 1415 "CONTENT_LENGTH": len(body), |
