def METHOD_NAME(testapp, library_size_range, library_fragment_length_CV):
    # https://encodedcc.atlassian.net/browse/ENCD-5276
    testapp.post_json('/library', library_size_range, status=201)
    library_size_range.update({'average_fragment_size': 350})
    testapp.post_json('/library', library_size_range, status=422)
    library_size_range.pop('size_range')
    testapp.post_json('/library', library_size_range, status=201)
    testapp.post_json('/library', library_fragment_length_CV, status=201)
    library_fragment_length_CV.update({'fragment_length_SD': 45})
    testapp.post_json('/library', library_fragment_length_CV, status=422)
    library_fragment_length_CV.pop('fragment_length_CV')
    testapp.post_json('/library', library_fragment_length_CV, status=201)