summaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 6d4a8d5..d001d22 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -14,6 +14,10 @@ class TestViewState(object):
vs = ViewState(f.read())
assert vs.is_valid() is True
+ def test_invalid_base64(self):
+ with pytest.raises(ViewStateException):
+ vs = ViewState('hello')
+
def test_invalid_decode(self):
with pytest.raises(ViewStateException):
vs = ViewState()