def _assertImageResized(self, image_file, should_resize):
    self.image_file = image_file
    with patch.object(ArtResizer.shared, 'resize') as mock_resize:
        self.plugin.art_for_album(None, [''], True)
        self.assertEqual(mock_resize.called, should_resize)
def _assertImageResized(self, image_file, should_resize):
    self.image_file = image_file
    with patch.object(ArtResizer.shared, 'resize') as mock_resize:
        self.plugin.art_for_album(None, [], True)
        self.assertEqual(mock_resize.called, should_resize)