Ejemplo n.º 1
0
def test_get_direct_image_url_chnaged():
    image_url = 'http://imgur.com/aaaaa'
    direct_image_url = dcard_coworker.get_direct_image_url(image_url)
    assert direct_image_url == 'http://i.imgur.com/aaaaa.png'
Ejemplo n.º 2
0
def test_get_direct_image_url_unchnaged():
    image_url = 'http://test.com/test.jpg'
    direct_image_url = dcard_coworker.get_direct_image_url(image_url)
    assert direct_image_url == image_url