minor code changes

master
Emmanuelle Vargas-Gonzalez 2018-11-28 16:51:35 -05:00
parent 71a2aa2611
commit e896812754
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,6 @@
# flake8: noqa
from .core import _collect_stix2_mappings, parse, parse_observable
from .v20 import * # This import will always be the latest STIX 2.X version
from .datastore import CompositeDataSource
from .datastore.filesystem import (
FileSystemSink, FileSystemSource,
@ -68,6 +67,7 @@ from .patterns import (
WithinQualifier
)
from .utils import new_version, revoke
from .v20 import * # This import will always be the latest STIX 2.X version
from .version import __version__
_collect_stix2_mappings()

View File

@ -258,7 +258,7 @@ def test_confidence_range_dni():
elif _between(39, val, 20):
assert value_to_dni(val) == "Unlikely / Improbable"
elif _between(59, val, 40):
assert value_to_dni(val) == "Roughly Even Change / Roughly Even Odds"
assert value_to_dni(val) == "Roughly Even Chance / Roughly Even Odds"
elif _between(79, val, 60):
assert value_to_dni(val) == "Likely / Probable"
elif _between(89, val, 80):
@ -272,7 +272,7 @@ def test_confidence_range_dni():
("Almost No Chance / Remote", 5),
("Very Unlikely / Highly Improbable", 15),
("Unlikely / Improbable", 30),
("Roughly Even Change / Roughly Even Odds", 50),
("Roughly Even Chance / Roughly Even Odds", 50),
("Likely / Probable", 70),
("Very Likely / Highly Probable", 85),
("Almost Certain / Nearly Certain", 95),