Example #1
0
def detached_sigfiles(filepath, signing_formats):
    detached_signatures = []
    for sig_type, sig_ext, sig_mime in get_detached_signatures(signing_formats):
        detached_filepath = "{filepath}{ext}".format(filepath=filepath,
                                                     ext=sig_ext)
        detached_signatures.append(detached_filepath)
    return detached_signatures
Example #2
0
def test_detached_signatures():
    assert get_detached_signatures(["mar", "gpg", "pgp"]) == [("gpg", ".asc", "text/plain")]