def test_update(self):
        self.login()
        res = self.client.get('/api/1/sources/%s' % self.source.id)
        data = res.json
        data['label'] = '%s - new' % data['label']
        jdata = json.dumps(data)
        res = self.client.post('/api/1/sources/%s' % data['id'], data=jdata,
                               content_type='application/json')
        assert res.status_code == 200, (res.json, data)
        assert res.json['label'] == data['label'], res.json
        assert res.json['id'], res.json
dataset/ETHPy150Open pudo/aleph/aleph/tests/test_sources_api.py/SourcesApiTestCase.test_update/original