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

def test_dump_privatekey_pem(self):

    key = load_privatekey(FILETYPE_PEM, cleartextPrivateKeyPEM)
    self.assertTrue(key.check())
    dumped_pem = dump_privatekey(FILETYPE_PEM, key)
    self.assertEqual(dumped_pem, cleartextPrivateKeyPEM)
