def test_get_image_data_none(): image_data = {} actual_image_url, actual_height, \ actual_width = mv._get_image_data( image_data ) assert actual_image_url is None assert actual_height is None assert actual_width is None
def test_get_image_data_large(): image_data = _get_resource_json("large_image_data.json") actual_image_url, actual_height,\ actual_width = mv._get_image_data( image_data ) assert actual_image_url == "https://collections.museumsvictoria.com.au/content/media/45/329745-large.jpg" assert actual_height == 2581 assert actual_width == 2785
def test_get_image_data_small(): image_data = _get_resource_json("small_image_data.json") actual_image_url, actual_height,\ actual_width = mv._get_image_data( image_data ) assert actual_image_url == "https://collections.museumsvictoria.com.au/content/media/45/329745-small.jpg" assert actual_height == 500 assert actual_width == 540
def test_get_image_data_medium(): image_data = _get_resource_json("medium_image_data.json") actual_image_url, actual_height,\ actual_width = mv._get_image_data( image_data ) assert actual_image_url == ( "https://collections.museumsvictoria.com.au/content/media/45/" "329745-medium.jpg") assert actual_height == 1390 assert actual_width == 1500