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 = 'http://ksmartstatic.sify.com/cmf-1.0.0/appflow/bawarchi.com/Image/oeturjecjjdah_bigger.jpg'
    my_name = self.get_user_name()

    message = my_name + ' completed FACEBOOK CLI module! @ {}'.format(str(datetime.datetime.now()))
    print(message)
    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’, ‘http://ksmartstatic.sify.com/cmf-1.0.0/appflow/bawarchi.com/Image/oeturjecjjdah_bigger.jpg’)
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/test_views.py:119: 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 = https://graph.facebook.com/112574570288165/feed?access_token=EAAG8vdoul1cBAEpacIqnNn0aZAFhN3Vq8PmJti6kOqcqh3aZByhsy0VaXLuekXsduuddUHoOsYyp1e8Nu3VxT0Yoo52WBw5mZC8GLku8Wv36Duejd1nmeGLAXCLVAHq1YQpZBdEMMBrqQjnbPaBZA08uVEWCZABml5JZCqQuFDLBQZDZD&fields=id,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.