diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-08-16 11:30:35 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-08-16 11:30:35 (GMT) |
commit | 161c0f8ab227af5033b1b6456607b9b9c3bc60df (patch) | |
tree | cadf14ab1bfe857ac9a7904fe9ea98de554751d8 /tests/test.py | |
parent | 56ee4d3ecddeee05f11083fcc1595e3756b91790 (diff) |
Improved the code for handling vmpa_t definitions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@388 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'tests/test.py')
-rw-r--r-- | tests/test.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/test.py b/tests/test.py new file mode 100644 index 0000000..895c4f6 --- /dev/null +++ b/tests/test.py @@ -0,0 +1,39 @@ +#!/usr/bin/python3-dbg +# -*- coding: utf-8 -*- + + + +class TestSuite: + + + + + + + + + def print_sep(): + """Print a separator line.""" + + print('------------------------') + + + def check_true(desc, code): + """Check if an expression is true.""" + + try: + test = code() + except: + test = False + + if test: + print('[+] %s: OK' % desc) + else: + print('[+] %s: nok...' % desc) + raise Exception('Unexpected result!') + + + + + + |