From 15bc07a8fe5d72bff673429f70b60fb8990fe3b4 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Thu, 24 Mar 2016 01:41:47 +0200 Subject: Add is_valid() impl and test --- test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test.py (limited to 'test.py') diff --git a/test.py b/test.py new file mode 100644 index 0000000..84249b2 --- /dev/null +++ b/test.py @@ -0,0 +1,13 @@ +import unittest + +from viewstate import ViewState + +class TestViewState(unittest.TestCase): + + def test_is_valid(self): + with open('samples/ngcs.sample', 'r') as f: + vs = ViewState(f.read()) + self.assertTrue(vs.is_valid()) + +if __name__ == '__main__': + unittest.main() -- cgit v1.3.1