def test_response_iter(): resp = data_processing.PeonyResponse(list(range(3)), {}, "", {}) for i, x in enumerate(resp): assert i == x
def response(json_data): return data_processing.PeonyResponse(data=json_data, headers={}, url="", request={})