def METHOD_NAME(self):
    new_casting = [
        {"asset_id": self.asset_id, "nb_occurences": 1},
        {"asset_id": self.asset_character_id, "nb_occurences": 3},
    ]
    self.put(
        "/data/projects/%s/entities/%s/casting"
        % (self.project_id, self.shot_id),
        new_casting,
    )
    assets = self.get("/data/assets?episode_id=%s" % self.episode_id)
    assets = sorted(assets, key=lambda a: a["name"])
    self.assertEqual(len(assets), 2)
    self.assertEqual(assets[0]["name"], "Rabbit")
    self.assertEqual(assets[1]["name"], "Tree")
    self.asset.update({"source_id": self.episode_id})
    assets = self.get("/data/assets?episode_id=%s" % self.episode_id)
    self.assertEqual(len(assets), 3)