def METHOD_NAME(env):
    event, order, shirt = env
    event.badge_layouts.create(name="Default", default=True)
    e = BadgeExporter(event, organizer=event.organizer)
    fname, ftype, buf = e.render({
        'items': [shirt.pk],
        'rendering': 'a4_a6l',
        'include_pending': True
    })
    assert ftype == 'application/pdf'
    pdf = PdfReader(BytesIO(buf))
    assert len(pdf.pages) == 1