@mock.patch.object(trovebox.Trovebox, 'post')
    def test_album_create(self, mock_post):
        mock_post.return_value = self._return_value(self.test_albums_dict[0])
        result = self.client.album.create(name="Test", foo="bar")
        mock_post.assert_called_with("/album/create.json", name="Test",
                                     foo="bar")
        self.assertEqual(result.id, "1")
        self.assertEqual(result.name, "Album 1")
        self.assertEqual(result.cover.id, "1a")
        self.assertEqual(result.cover.tags, ["tag1", "tag2"])
Get the absolute pathname of the config file.
dataset/ETHPy150Open photo/openphoto-python/tests/unit/test_albums.py/TestAlbumCreate.test_album_create--crossover with--dataset/ETHPy150Open CMB/cligh/cligh/config.py/get_config_filename