@pytest.mark.httpretty
def test_save_validation(fixture, resource, return_payload):
    resource.url_attribute = 'resource_uri'
    httpretty.register_uri(httpretty.GET, resource.url, body=fixture('movie.json'),
        content_type='application/json')
    movie = resource.collection.get(id=1)
    movie.runtime = 'NAN'
    with pytest.raises(schema.SchemaError) as excinfo:
        movie.save()
    assert str(excinfo.value) == 'Invalid runtime'
    resource.schema = None  # Deactivates validation
    httpretty.register_uri(httpretty.PUT, movie.get_url(), body=return_payload,
        content_type='application/json')
    movie.save().runtime = 'NAN'
Function to take a dictionary of id:test-fold-number and
dataset/ETHPy150Open transcode-de/durga/tests/test_element.py/test_save_validation--crossover with--dataset/ETHPy150Open EducationalTestingService/skll/skll/experiments.py/_write_skll_folds