aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/oids.py2
-rw-r--r--src/scripts/test_python.py8
2 files changed, 1 insertions, 9 deletions
diff --git a/src/scripts/oids.py b/src/scripts/oids.py
index 323b6efb5..dae1a4dc5 100755
--- a/src/scripts/oids.py
+++ b/src/scripts/oids.py
@@ -200,7 +200,7 @@ def format_set_map(m):
s += '{ "%s", {' % k
for pad in v:
s += '"%s", ' % pad
- if len(v) is not 0:
+ if len(v) != 0:
s = s[:-2]
s += '} },\n'
s = s[:-1]
diff --git a/src/scripts/test_python.py b/src/scripts/test_python.py
index e4f115d0c..868de11ab 100644
--- a/src/scripts/test_python.py
+++ b/src/scripts/test_python.py
@@ -197,14 +197,6 @@ class BotanPythonTests(unittest.TestCase):
mce_pub = mce_priv.get_public_key()
self.assertEqual(mce_pub.estimated_strength(), 128)
- mce_plaintext = rng.get(16)
- mce_ad = rng.get(48)
- mce_ciphertext = botan2.mceies_encrypt(mce_pub, rng, 'ChaCha20Poly1305', mce_plaintext, mce_ad)
-
- mce_decrypt = botan2.mceies_decrypt(mce_priv, 'ChaCha20Poly1305', mce_ciphertext, mce_ad)
-
- self.assertEqual(mce_plaintext, mce_decrypt)
-
def test_rsa_load_store(self):
rsa_priv_pem = """-----BEGIN PRIVATE KEY-----