summaryrefslogtreecommitdiff
path: root/tests/test_obj.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2015-11-19 14:42:15 +0100
committerMatěj Cepl <mcepl@cepl.eu>2015-11-19 14:42:15 +0100
commitef45a18ebcb2d1d1f53410defff8b0713aad6598 (patch)
tree1d47f83bb24f65f59dceafc25a80f149ad0ccdbe /tests/test_obj.py
parent18d9ffea4222dadf2fa61171ec8fdc19f94a1880 (diff)
downloadm2crypto-ef45a18ebcb2d1d1f53410defff8b0713aad6598.tar.gz
Strip trailinig spaces and expand tabs.
Just run $ find . -name \*.py -exec sed -r -i -e "s/\t/ /g" '{}' \; $ find . -name \*.py -exec sed -r -i -e "s/[ ]+$//" '{}' \;
Diffstat (limited to 'tests/test_obj.py')
-rw-r--r--tests/test_obj.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_obj.py b/tests/test_obj.py
index 9e8239a..731a326 100644
--- a/tests/test_obj.py
+++ b/tests/test_obj.py
@@ -55,7 +55,7 @@ class ObjectsTestCase(unittest.TestCase):
m2.obj_obj2nid(m2.obj_txt2obj("CN", 0)), "obj2nid")
self.assertEqual(m2.obj_txt2nid("__unknown"),
0, "__unknown")
-
+
def test_tuple2tuple(self):
tup = ("CN", "someCommonName")
tup1 = x509_name_entry2tuple(tuple2x509_name_entry(tup))
@@ -67,7 +67,7 @@ class ObjectsTestCase(unittest.TestCase):
def test_unknown(self):
with self.assertRaises(ValueError):
tuple2x509_name_entry(("__unknown", "_"))
-
+
def test_x509_name(self):
n = X509.X509_Name()
n.C = 'US' # It seems this actually needs to be a real 2 letter country code
@@ -80,7 +80,7 @@ class ObjectsTestCase(unittest.TestCase):
n.serialNumber = '1234'
n.SN = 'surname'
n.GN = 'given name'
-
+
n.givenName = 'name given'
self.assertEqual(len(n), 11, len(n))