diff options
| author | Yuval Adam <_@yuv.al> | 2018-02-27 01:06:56 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-02-27 01:06:56 +0200 |
| commit | 96b1b266324440825a1561ab51b0b6fa32f40767 (patch) | |
| tree | 23c529a23a0038ad19607f7cb6de3bf0c662e7b0 /tests | |
| parent | 85fbcb18cd2ab2b4c4e66c8af2c7c7075490efe9 (diff) | |
Add full sample parsing unit tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_parse.py | 7 |
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() + |
