Files
QVolution2019.2/sleeper_agents_aom_engine/reporter/incoming/test_message.py
2021-09-12 22:16:11 -06:00

17 lines
407 B
Python
Executable File

import unittest
from message import SlackMessage
class Test_SlackMessage(unittest.TestCase) :
def test_basic(self) :
def recv(*args, **payload) :
return SlackMessage(payload)
try :
recv(data={"hello":"world"})
self.fail("did not raise exception at bad slack message payload")
except Exception :
pass
if __name__ == "__main__" :
unittest.main()