summaryrefslogtreecommitdiff
path: root/tests/test_parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_parse.py')
-rw-r--r--tests/test_parse.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py
index 170d5ef..96eef14 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -43,3 +43,10 @@ class TestParse(object):
with pytest.raises(ViewStateException):
vs = ViewState(raw=b'\xff\x01\x99\x99\x99')
assert vs.decode()
+
+ def test_parse_samples(self):
+ for s in ['ngcs', 'mot', 'ecom']:
+ with open(f'tests/samples/{s}.sample', 'r') as f:
+ vs = ViewState(f.read())
+ _ = vs.decode()
+