We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0d1560 commit c56a8a7Copy full SHA for c56a8a7
test/rest_common.py
@@ -1580,8 +1580,14 @@ def testDispatch(self):
1580
form)
1581
self.assertEqual(self.server.client.response_code, 406)
1582
print(results)
1583
+ try: # only verify local copy not system installed copy
1584
+ from roundup.dicttoxml import dicttoxml
1585
+ includexml = ', application/xml'
1586
+ except ImportError:
1587
+ includexml = ''
1588
+
1589
response="Requested content type 'jon' is not available.\n" \
- "Acceptable types: */*, application/json, application/xml\n"
1590
+ "Acceptable types: */*, application/json%s\n"%includexml
1591
self.assertEqual(results, response)
1592
1593
# TEST #9
0 commit comments