'Test :py:obj:`PKCS12.export` with text not bytes as passphrase'

def test_export_without_bytes(self):

    p12 = self.gen_pkcs12(server_cert_pem, server_key_pem, root_cert_pem)
    with catch_warnings(record=True) as w:
        simplefilter('always')
        dumped_p12 = p12.export(passphrase='randomtext'.decode('ascii'))
        self.assertEqual('{0}    for    passphrase    is    no    longer    accepted,    use    bytes'.format(WARNING_TYPE_EXPECTED), str(w[(-1)].message))
        self.assertIs(w[(-1)].category, DeprecationWarning)
    self.check_recovery(dumped_p12, key=server_key_pem, cert=server_cert_pem, passwd='randomtext')
