@pytest.mark.parametrize('file, registration', [('xl/media/image1.png', '<Default ContentType="image/png" Extension="png" />'), ('xl/drawings/commentsDrawing.vml', '<Default ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing" Extension="vml" />')])
def test_media(self, Manifest, file, registration):
    from openpyxl import Workbook
    wb = Workbook()
    manifest = Manifest()
    manifest._register_mimetypes([file])
    xml = tostring(manifest.Default[(- 1)].to_tree())
    diff = compare_xml(xml, registration)
    assert (diff is None), diff
@pytest.mark.parametrize('file, registration', [('xl/media/image1.png', '<Default ContentType="image/png" Extension="png" />'), ('xl/drawings/commentsDrawing.vml', '<Default ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing" Extension="vml" />')])
def test_media(self, Manifest, file, registration):
    from openpyxl import Workbook
    wb = Workbook()
    manifest = Manifest()
    manifest._register_mimetypes([file])
    xml = tostring(manifest.Default[(- 1)].to_tree())
    diff = compare_xml(xml, registration)
    assert (diff is None), diff