summaryrefslogtreecommitdiff
path: root/tests/test_dh.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2018-03-18 23:11:38 +0100
committerMatěj Cepl <mcepl@cepl.eu>2018-03-20 18:47:23 +0100
commit17f7ca77afa75cedaa60bf3db767119adba4a2ec (patch)
tree0c4ff5f475bce84a3e7e88ab83b32dd38892066c /tests/test_dh.py
parentb977909fc93caa599e52943be25b7f6042a4c70b (diff)
downloadm2crypto-17f7ca77afa75cedaa60bf3db767119adba4a2ec.tar.gz
PEP8isation
Specially replace complicated construct with unittest2 to one import to M2Crypto top module. Also, Rand.load_file should have first parameter as bytes(), not str().
Diffstat (limited to 'tests/test_dh.py')
-rw-r--r--tests/test_dh.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_dh.py b/tests/test_dh.py
index 20b763a..074f154 100644
--- a/tests/test_dh.py
+++ b/tests/test_dh.py
@@ -4,12 +4,8 @@
Copyright (c) 2000 Ng Pheng Siong. All rights reserved."""
-try:
- import unittest2 as unittest
-except ImportError:
- import unittest
-
from M2Crypto import DH, BIO, Rand
+from tests import unittest
class DHTestCase(unittest.TestCase):