':py:obj:`dump_privatekey` writes a text'

def test_dump_privatekey_text(self):

    key = load_privatekey(FILETYPE_PEM, cleartextPrivateKeyPEM)
    dumped_pem = dump_privatekey(FILETYPE_PEM, key)
    dumped_text = dump_privatekey(FILETYPE_TEXT, key)
    good_text = _runopenssl(dumped_pem, 'rsa', '-noout', '-text')
    self.assertEqual(dumped_text, good_text)
