mirror of https://github.com/MISP/PyMISP
chg: remove IntEnum
parent
5301ddd1fa
commit
176eed77bf
|
@ -55,14 +55,14 @@ class Distribution(Enum):
|
||||||
inherit = 5
|
inherit = 5
|
||||||
|
|
||||||
|
|
||||||
class ThreatLevel(IntEnum):
|
class ThreatLevel(Enum):
|
||||||
high = 1
|
high = 1
|
||||||
medium = 2
|
medium = 2
|
||||||
low = 3
|
low = 3
|
||||||
undefined = 4
|
undefined = 4
|
||||||
|
|
||||||
|
|
||||||
class Analysis(IntEnum):
|
class Analysis(Enum):
|
||||||
initial = 0
|
initial = 0
|
||||||
ongoing = 1
|
ongoing = 1
|
||||||
completed = 2
|
completed = 2
|
||||||
|
|
|
@ -1705,7 +1705,7 @@ class TestComprehensive(unittest.TestCase):
|
||||||
first_send = self.create_simple_event()
|
first_send = self.create_simple_event()
|
||||||
try:
|
try:
|
||||||
first = self.user_misp_connector.add_event(first_send)
|
first = self.user_misp_connector.add_event(first_send)
|
||||||
self.assertTrue(isinstance(first, MISPEvent), '\n'.join([first_send, first]))
|
self.assertTrue(isinstance(first, MISPEvent), first)
|
||||||
file_obj, bin_obj, sections = make_binary_objects('tests/viper-test-files/test_files/whoami.exe', standalone=False)
|
file_obj, bin_obj, sections = make_binary_objects('tests/viper-test-files/test_files/whoami.exe', standalone=False)
|
||||||
first.add_object(file_obj)
|
first.add_object(file_obj)
|
||||||
first.add_object(bin_obj)
|
first.add_object(bin_obj)
|
||||||
|
|
Loading…
Reference in New Issue