This commit is contained in:
bel
2021-09-12 22:16:11 -06:00
commit ceeb6f0385
129 changed files with 9221 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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()