Assertion error in unit testing

  1. Describe the issue briefly
    I am getting this error in unitLog
    =================================== FAILURES ===================================
    ______________ TestSocialSharing.test_post_to_facebook_share_cli _______________

self = <tests.test_views.TestSocialSharing object at 0x3e1f20ba2d68>

def test_post_to_facebook_share_cli(self):

    facebook = restaurants.facebook_post.Facebook()
    image_url = ''
    my_name = self.get_user_name()

    message = my_name + ' completed FACEBOOK CLI module! @ {}'.format(str(
    facebook.publish_photo_msg(message, image_url)

    facebook_test_util = FacebookTestUtil()
  assert facebook_test_util.check_whether_message_is_published(message, image_url)

E AssertionError: assert False
E + where False = <bound method FacebookTestUtil.check_whether_message_is_published of <tests.test_views.FacebookTestUtil object at 0x3e1f2510a5c0>>(‘Assessment completed FACEBOOK CLI module! @ 2020-02-29 11:23:02.213797’, ‘’)
E + where <bound method FacebookTestUtil.check_whether_message_is_published of <tests.test_views.FacebookTestUtil object at 0x3e1f2510a5c0>> = <tests.test_views.FacebookTestUtil object at 0x3e1f2510a5c0>.check_whether_message_is_published

tests/ AssertionError
----------------------------- Captured stdout call -----------------------------
Assessment completed FACEBOOK CLI module! @ 2020-02-29 11:23:02.213797
{‘id’: ‘132953691567641’, ‘post_id’: ‘112484523614558_132953691567641’}
Get user feed url =,message,attachments
=============================== warnings summary ===============================
2. How much time have you spent debugging this issue?
(Please spend at least 15 minutes to resolve the issue on your own before posting a new topic here)
2 hrs now…
3. What is your hypothesis?

Hey, you have hardcoded access token, image url. And you are not using the message parameter given in that definition.

I’m closing this topic due to no response from you since last 3 days. If your query is resolved you can mark my reply as a solution. If you still have the query, please create a new topic paste the link of this topic in the description.