aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 06366773..116abfe1 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -265,6 +265,12 @@ class uparse_text_cert(libpry.AutoTree):
assert cn == "google.com"
assert len(san) == 436
+ c = file("data/text_cert_2", "r").read()
+ cn, san = utils.parse_text_cert(c)
+ assert cn == "www.inode.co.nz"
+ assert len(san) == 2
+
+
tests = [
uparse_text_cert(),