@mock.patch.object(trovebox.Trovebox, 'post')
    def test_album_update(self, mock_post):
        mock_post.return_value = self._return_value(self.test_albums_dict[1])
        result = self.client.album.update(self.test_albums[0], name="Test")
        mock_post.assert_called_with("/album/1/update.json", name="Test")
        self.assertEqual(result.id, "2")
        self.assertEqual(result.name, "Album 2")
        self.assertEqual(result.cover.id, "2b")
        self.assertEqual(result.cover.tags, ["tag3", "tag4"])
Check that an album can be updated
dataset/ETHPy150Open photo/openphoto-python/tests/unit/test_albums.py/TestAlbumUpdate.test_album_update