<filename>mocking/me.py
import requests

gif_api_endpoint = 'https://gif-it-to-me-baby.herokuapp.com'


def via_gif(name):
    args = {'search': 'condescending-wonka', 'text': 'well done, %s' % name}
    resp = requests.post(gif_api_endpoint, json=args)
    if resp.status_code != 200:
        raise Exception("Unable to get gif")
    return resp.content

<filename>mocking/me.py
import requests

gif_api_endpoint = 'https://gif-it-to-me-baby.herokuapp.com'


def via_gif(name):
    args = {'search': 'condescending-wonka', 'text': 'well done, %s' % name}
    resp = requests.post(gif_api_endpoint, json=args)
    if resp.status_code != 200:
        raise Exception("Unable to get gif")
    return resp.content
