edk2toollib/uefi/authenticated_variables_structure_support_test.py
def MixedCertsData():
    """ Returns a tuple of (rawData, expectedDupes, expectedCanonical) for a mix of unsorted certs with dupes """

    owner = '77fa9abd-0359-4d32-bd60-28f4e78f784b'

    esls = [
        x509_esl_builder([(DEBIAN_CERT, owner)]),
        x509_esl_builder([(UBUNTU_CERT, owner)])
    ]

    input = [
        esls[1],
        esls[0],
        esls[1],
        esls[0],
        esls[1]
    ]
    esd = EfiSignatureDatabase(EslList=input)

    dupes = [
        esls[0],
        esls[1],
        esls[1]
    ]
    expected_dupes_esd = EfiSignatureDatabase(EslList=dupes)

    canonical = [
        esls[0],
        esls[1],
    ]
    expected_canonical_esd = EfiSignatureDatabase(EslList=canonical)

    return (esd, expected_dupes_esd, expected_canonical_esd)
 Returns a tuple of (rawData, expectedDupes, expectedCanonical) for a mix of unsorted certs with dupes 
Returns a tuple of (rawData, expectedDupes, expectedCanonical) for a mix of unsorted certs with dupes
Returns a tuple of ( rawData expectedDupes expectedCanonical ) for a mix of unsorted certs with dupes
def MixedCertsData():
    owner = '77fa9abd-0359-4d32-bd60-28f4e78f784b'
    esls = [
        x509_esl_builder([(DEBIAN_CERT, owner)]),
        x509_esl_builder([(UBUNTU_CERT, owner)])
    ]
    input = [
        esls[1],
        esls[0],
        esls[1],
        esls[0],
        esls[1]
    ]
    esd = EfiSignatureDatabase(EslList=input)
    dupes = [
        esls[0],
        esls[1],
        esls[1]
    ]
    expected_dupes_esd = EfiSignatureDatabase(EslList=dupes)
    canonical = [
        esls[0],
        esls[1],
    ]
    expected_canonical_esd = EfiSignatureDatabase(EslList=canonical)
    return (esd, expected_dupes_esd, expected_canonical_esd)
def MixedCertsData ( ) : owner = '77fa9abd-0359-4d32-bd60-28f4e78f784b' esls = [ x509_esl_builder ( [ ( DEBIAN_CERT , owner ) ] ) , x509_esl_builder ( [ ( UBUNTU_CERT , owner ) ] ) ] input = [ esls [ 1 ] , esls [ 0 ] , esls [ 1 ] , esls [ 0 ] , esls [ 1 ] ] esd = EfiSignatureDatabase ( EslList = input ) dupes = [ esls [ 0 ] , esls [ 1 ] , esls [ 1 ] ] expected_dupes_esd = EfiSignatureDatabase ( EslList = dupes ) canonical = [ esls [ 0 ] , esls [ 1 ] , ] expected_canonical_esd = EfiSignatureDatabase ( EslList = canonical ) return ( esd , expected_dupes_esd , expected_canonical_esd )
Returns a tuple of (rawData, expectedDupes, expectedCanonical) for a mix of unsorted certs with dupes
Returns a tuple of ( rawData expectedDupes expectedCanonical ) for a mix of unsorted certs with dupes
""" Returns a tuple of (rawData, expectedDupes, expectedCanonical) for a mix of unsorted certs with dupes """