(options, expected_xml)
| 20 | ) |
| 21 | @responses.activate |
| 22 | def test_xml_format_options(options, expected_xml): |
| 23 | responses.add( |
| 24 | responses.GET, |
| 25 | DUMMY_URL, |
| 26 | body=XML_DATA_RAW, |
| 27 | content_type='application/xml', |
| 28 | ) |
| 29 | |
| 30 | r = http('--format-options', options, DUMMY_URL) |
| 31 | assert expected_xml in r |
| 32 | |
| 33 | |
| 34 | @pytest.mark.parametrize('file', XML_FILES_VALID) |