示例#1
0
 def test_extract_image_urls_class__err(self):
     raw_xml = self.read_data(M31_XML)
     with pytest.raises(ValueError):
         IrsaDust.extract_image_urls(raw_xml, image_type="l")
示例#2
0
 def test_extract_image_urls_class(self, image_type, expected_urls):
     raw_xml = self.read_data(M31_XML)
     url_list = IrsaDust.extract_image_urls(raw_xml, image_type=image_type)
     assert url_list == expected_urls