':py:obj:`dump_privatekey` raises :py:obj:`ValueError` when it is passed a passphrase
with a private key encoded in a format, that doesn\'t support
encryption.'

def test_dump_privatekey_passphraseWrongType(self):

    key = load_privatekey(FILETYPE_PEM, cleartextPrivateKeyPEM)
    self.assertRaises(ValueError, dump_privatekey, FILETYPE_ASN1, key, GOOD_CIPHER, 'secret')
