

def test_simple(self):
    project = self.create_project()
    snapshot = self.create_snapshot(project)
    path = '/api/0/snapshots/{0}/'.format(snapshot.id)
    resp = self.client.get(path)
    assert (resp.status_code == 200)
    data = self.unserialize(resp)
    assert (data['id'] == snapshot.id.hex)
    assert (data['project']['id'] == project.id.hex)
    assert (data['build'] is None)

dataset/ETHPy150Open dropbox/changes/tests/changes/api/test_snapshot_details.py SnapshotDetailsTest.test_simple/original