'Verify that the PKCS#12 container contains the correct client
certificate and private key.
:param p12: The PKCS12 instance to verify.
:type p12: :py:class:`PKCS12`'

def verify_pkcs12_container(self, p12):

    cert_pem = dump_certificate(FILETYPE_PEM, p12.get_certificate())
    key_pem = dump_privatekey(FILETYPE_PEM, p12.get_privatekey())
    self.assertEqual((client_cert_pem, client_key_pem, None), (cert_pem, key_pem, p12.get_ca_certificates()))
