aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-12 15:35:49 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-12 15:35:49 -0600
commita43b6697255a8488cbd7e75182d06bf97bf86750 (patch)
tree8a6c8f64880db345e50fed268e11c6dab7fcef5b /tests/utils.py
parent5e981fc4bad969750a1a8e109ee6391fb5d4bfbc (diff)
downloadcryptography-a43b6697255a8488cbd7e75182d06bf97bf86750.tar.gz
cryptography-a43b6697255a8488cbd7e75182d06bf97bf86750.tar.bz2
cryptography-a43b6697255a8488cbd7e75182d06bf97bf86750.zip
GCM loader support
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index df9232d8..8fa9af92 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -43,8 +43,12 @@ def load_nist_vectors(vector_data):
section = line[1:-1]
continue
+ if line.strip() == "FAIL":
+ data[section, count]["fail"] = True
+ continue
+
# Build our data using a simple Key = Value format
- name, value = line.split(" = ")
+ name, value = [c.strip() for c in line.split("=")]
# COUNT is a special token that indicates a new block of data
if name.upper() == "COUNT":