test_standalone.py 665 Bytes
Newer Older
Maxime Perrotin's avatar
Maxime Perrotin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python

import sys

sys.path.insert(0, '../..')
from asn1_value_editor import standalone_editor as editor
editor.logger.setLevel(editor.logging.DEBUG)

def test_1():
    ''' Test with a single boolean type '''
    s = editor.SingleValueEditor('data/dv2.asn',
                                 paramsAndTypes={'param': 'Ahah'})
    assert s is not None


def test_2():
    ''' Test '''
    assert True

if __name__ == '__main__':
    for name, value in dict(globals()).viewitems():
        if name.startswith('test_'):
            print('---- Executing {} ----'.format(name))
            value()
            print('---- Done - {} ----\n'.format(name))