Skip to content

Commit

Permalink
add unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
hollal committed Aug 29, 2017
1 parent 9d4e55d commit a6c5798
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def test_receipt(self):
def test_message(self):
with self.assertRaises(Exception):
m = Payload.Message(text="hello", attachment=Attachment.Image('img'))
with self.assertRaises(ValueError):
m = Payload.Message(text="hello", quick_replies=Payload.QuickReply(title='Yes', payload='PICK_YES'))

m = Payload.Message(text="hello", metadata="METADATA", quick_replies=[{'title': 'Yes', 'payload': 'PICK_YES'}])
self.assertEquals('{"attachment": null, "metadata": "METADATA", '
Expand Down

0 comments on commit a6c5798

Please sign in to comment.