forked from p15670423/monkey
Added doc to test_event
This commit is contained in:
parent
524859f011
commit
c1ac45470c
|
@ -11,19 +11,20 @@ class TestEvent(IslandTestCase):
|
||||||
self.clean_finding_db()
|
self.clean_finding_db()
|
||||||
|
|
||||||
with self.assertRaises(ValidationError):
|
with self.assertRaises(ValidationError):
|
||||||
Event.create_event(
|
_ = Event.create_event(
|
||||||
title=None, # title required
|
title=None, # title required
|
||||||
message="bla bla",
|
message="bla bla",
|
||||||
event_type=EVENT_TYPE_ISLAND
|
event_type=EVENT_TYPE_ISLAND
|
||||||
)
|
)
|
||||||
|
|
||||||
with self.assertRaises(ValidationError):
|
with self.assertRaises(ValidationError):
|
||||||
Event.create_event(
|
_ = Event.create_event(
|
||||||
title="skjs",
|
title="skjs",
|
||||||
message="bla bla",
|
message="bla bla",
|
||||||
event_type="Unknown" # Unknown event type
|
event_type="Unknown" # Unknown event type
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Assert that nothing is raised.
|
||||||
_ = Event.create_event(
|
_ = Event.create_event(
|
||||||
title="skjs",
|
title="skjs",
|
||||||
message="bla bla",
|
message="bla bla",
|
||||||
|
|
Loading…
Reference in New Issue