input: 
  from requests import post, get, put, delete
  
  def test_rest_api():
      """Test the REST API for creating, reading, updating, and deleting records.
      >>> response_get = get('http://127.0.0.1:5000/records')
      >>> response_get.json()
      {'records': []}
      >>> response_post = post('http://127.0.0.1:5000/records', json={'name': 'TestRecord'})
      >>> response_post.json()['id']
      1
      >>> response_get_post = get('http://127.0.0.1:5000/records')
      >>> response_get_post.json()
      {'records': ['TestRecord']}
      >>> response_put = put('http://127.0.0.1:5000/records/1', json={'name': 'UpdatedRecord'})
      >>> response_put.json()
      {'message': 'Record updated'}
      >>> response_get_put = get('http://127.0.0.1:5000/records')
      >>> response_get_put.json()
      {'records': ['UpdatedRecord']}
      >>> response_delete = delete('http://127.0.0.1:5000/records/1')
      >>> response_delete.json()
      {'message': 'Record deleted'}
      >>> response_get_delete = get('http://127.0.0.1:5000/records')
      >>> response_get_delete.json()
      {'records': []}
      """
  
output:     response_get = get('http://127.0.0.1:5000/records')
      assert response_get.json() == {'records': []}
  
      response_post = post('http://127.0.0.1:5000/records', json={'name': 'TestRecord'})
      assert response_post.json()['id'] == 1
  
      response_get_post = get('http://127.0.0.1:5000/records')
      assert response_get_post.json() == {'records': ['TestRecord']}
  
      response_put = put('http://127.0.0.1:5000/records/1', json={'name': 'UpdatedRecord'})
      assert response_put.json() == {'message': 'Record updated'}
  
      response_get_put = get('http://127.0.0.1:5000/records')
      assert response_get_put.json() == {'records': ['UpdatedRecord']}
  
      response_delete = delete('http://127.0.0.1:5000/records/1')
      assert response_delete.json() == {'message': 'Record deleted'}
  
      response_get_delete = get('http://127.0.0.1:5000/records')
      assert response_get_delete.json() == {'records': []}