diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-11-25 23:26:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-11-25 23:26:53 (GMT) |
commit | 545d0490f6fbb397da66410f534670c52bfcc5da (patch) | |
tree | b6923de79a4b406e51b906b76a737d93ea74b73c /tests/test.py | |
parent | 355a7140932b77d351bc6ddd965608b0011af855 (diff) |
Implemented restricted contents and created test cases.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@608 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'tests/test.py')
-rw-r--r-- | tests/test.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/test.py b/tests/test.py deleted file mode 100644 index 895c4f6..0000000 --- a/tests/test.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/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!') - - - - - - |