'Test that missing, None, and \'\' passphrases are identical for PKCS12
export.'

def test_various_empty_passphrases(self):

    p12 = self.gen_pkcs12(client_cert_pem, client_key_pem, root_cert_pem)
    passwd = ''
    dumped_p12_empty = p12.export(iter=2, maciter=0, passphrase=passwd)
    dumped_p12_none = p12.export(iter=3, maciter=2, passphrase=None)
    dumped_p12_nopw = p12.export(iter=9, maciter=4)
    for dumped_p12 in [dumped_p12_empty, dumped_p12_none, dumped_p12_nopw]:
        self.check_recovery(dumped_p12, key=client_key_pem, cert=client_cert_pem, ca=root_cert_pem, passwd=passwd)
