def test_patch_new_resource(self):
        response = self.app.patch('/artists/276',
                content_type='application/json',
                data=json.dumps({u'Name': u'Jeff Knupp'}))
        assert response.status_code == 201
        assert json.loads(response.get_data(as_text=True))['Name'] == u'Jeff Knupp'
        assert json.loads(response.get_data(as_text=True))['self'] == '/artists/276'
Safe defaults if module is disabled
dataset/ETHPy150Open jeffknupp/sandman/tests/test_sandman.py/TestSandmanBasicVerbs.test_patch_new_resource--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/sync.py/SyncDataModel.defaults