@mock.patch.object(trovebox.Trovebox, 'get')
    def test_albums_list(self, mock_get):
        mock_get.return_value = self._return_value(self.test_albums_dict)
        result = self.client.albums.list(foo="bar")
        mock_get.assert_called_with("/albums/list.json", foo="bar")
        self.assertEqual(len(result), 2)
        self.assertEqual(result[0].id, "1")
        self.assertEqual(result[0].name, "Album 1")
        self.assertEqual(result[1].id, "2")
        self.assertEqual(result[1].name, "Album 2")
Check that the album list is returned correctly
dataset/ETHPy150Open photo/openphoto-python/tests/unit/test_albums.py/TestAlbumsList.test_albums_list