def test_public_export_pubkey(self): key = Key(os.path.join(TEST_ROOT, 'client_pub.pem')) raw = open(os.path.join(TEST_ROOT, 'client_pub.pem'), 'rb').read() self.assertTrue(key.public_export().strip(), raw.strip())