add reaction to messages. move request URLs to utils

This commit is contained in:
Dainius
2017-05-16 19:20:46 +03:00
parent b1cccf4173
commit 4083348c40
4 changed files with 103 additions and 61 deletions

View File

@@ -158,6 +158,10 @@ class TestFbchat(unittest.TestCase):
self.assertTrue(client.changeThreadColor(ChatColor.MESSENGER_BLUE, user_uid))
client.sendMessage(ChatColor.MESSENGER_BLUE.name, user_uid, ThreadType.USER)
def test_reactToMessage(self):
mid = client.sendMessage("react_to_message", user_uid, ThreadType.USER)[0]
self.assertTrue(client.reactToMessage(mid, fbchat.MessageReaction.LOVE))
def start_test(param_client, param_group_uid, param_user_uid, tests=[]):
global client