Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
6a3f0112
Commit
6a3f0112
authored
Jul 16, 2016
by
Maxime Perrotin
Browse files
Add test case
parent
4a15eded
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/pytest/test_standalone.py
0 → 100755
View file @
6a3f0112
#!/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
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment