def test_fetch_image_info(self):
        i = ImageResolver()
        (ext, width, height) = i.fetch_image_info(self.web_img)

        self.assertEquals(ext, '.png')
        self.assertEquals(width, 518)
        self.assertEquals(height, 588)
	def test_fetch_image_info(self):
		i = ImageResolver()
		(ext,width,height) = i.fetch_image_info(self.web_img)

		self.assertEquals(ext,'.png')
		self.assertEquals(width,518)
		self.assertEquals(height,588)
 def test_resolve_webpage(self):
     i = ImageResolver()
     i.register(WebpageResolver(load_images=True))
     src = i.resolve(self.web_url)
     self.assertEquals(src, self.web_img)
    def test_resolve_fileext(self):
        i = ImageResolver()
        i.register(FileExtensionResolver())
        src = i.resolve(self.web_img)

        self.assertEquals(src, self.web_img)
 def test_resolve_plugin(self):
     i = ImageResolver()
     i.register(PluginResolver())
     src = i.resolve(self.imgur_page)
     self.assertEquals(src, self.imgur_result)
	def test_resolve_webpage(self):
		i = ImageResolver()
		i.register(WebpageResolver(load_images=True))
		src = i.resolve(self.web_url)
		self.assertEquals(src, self.web_img )
	def test_resolve_fileext(self):
		i = ImageResolver()
		i.register(FileExtensionResolver())
		src = i.resolve(self.web_img)

		self.assertEquals(src,self.web_img)
	def test_resolve_plugin(self):
		i = ImageResolver()
		i.register(PluginResolver())
		src = i.resolve(self.imgur_page)
		self.assertEquals(src,self.imgur_result)