

def test_simple(self):
    '\n        Test with a project with only one plan and no pre-existing\n        snapshots/cached snapshots, the simplest possible case.\n        '
    project = self.create_project()
    plan = self.create_plan(project)
    self.create_step(plan, data={
        'cluster': 'cluster',
    })
    snapshot = self.create_snapshot(project)
    snapshot_image = self.create_snapshot_image(snapshot, plan)
    resp = self.client.post(self.get_endpoint_path(snapshot.id))
    assert (resp.status_code == 200)
    data = self.unserialize(resp)
    assert (data == {
        'cluster': [snapshot_image.id.hex],
    })

dataset/ETHPy150Open dropbox/changes/tests/changes/api/test_cached_snapshot_details.py CachedSnapshotClusterDetailsAPITestCase.test_simple/original