#NEWLINE# @ pytest . mark . skipif ( is_py26 , reason = 'the `object_pairs_hook` arg for `json.loads()` is Py>2.6 only' ) #NEWLINE# def test_json_input_preserve_order( httpbin_both ) : #NEWLINE# #INDENT# r = http ( 'PATCH' , ( httpbin_both + '/patch' ) , 'order:={"map":{"1":"first","2":"second"}}' ) #NEWLINE# assert ( HTTP_OK in r ) #NEWLINE# assert ( httpbin_both . json [ 'data' ] == '{"order": {"map": {"1": "first", "2": "second"}}}' )