def test_resize_if_necessary(self):
    self._require_backend()
    self.plugin.maxwidth = 300
    self._assertImageResized(self.IMG_225x225, False)
    self._assertImageResized(self.IMG_348x348, True)
def test_resize_if_necessary(self):
    self._require_backend()
    self.plugin.maxwidth = 300
    self._assertImageResized(self.IMG_225x225, False)
    self._assertImageResized(self.IMG_348x348, True)