summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.py b/test.py
index 84249b2..2cda602 100644
--- a/test.py
+++ b/test.py
@@ -9,5 +9,10 @@ class TestViewState(unittest.TestCase):
vs = ViewState(f.read())
self.assertTrue(vs.is_valid())
+ def test_invalid_decode(self):
+ with self.assertRaises(Exception):
+ vs = ViewState('\x01\x02')
+ vs.decode()
+
if __name__ == '__main__':
unittest.main()