@@ -126,14 +126,14 @@ class Testjsonpath_ng_ext(testscenarios.WithScenarios,
126
126
{'cat' : 2 , 'cow' : 1 },
127
127
{'cat' : 3 , 'cow' : 3 }]},
128
128
target = 2 )),
129
- ('sort2' , dict (string = 'objects[\cat]' ,
129
+ ('sort2' , dict (string = 'objects[\\ cat]' ,
130
130
data = {'objects' : [{'cat' : 2 }, {'cat' : 1 }, {'cat' : 3 }]},
131
131
target = [[{'cat' : 3 }, {'cat' : 2 }, {'cat' : 1 }]])),
132
- ('sort2_indexed' , dict (string = 'objects[\cat][-1].cat' ,
132
+ ('sort2_indexed' , dict (string = 'objects[\\ cat][-1].cat' ,
133
133
data = {'objects' : [{'cat' : 2 }, {'cat' : 1 },
134
134
{'cat' : 3 }]},
135
135
target = 1 )),
136
- ('sort3' , dict (string = 'objects[/cow,\cat]' ,
136
+ ('sort3' , dict (string = 'objects[/cow,\\ cat]' ,
137
137
data = {'objects' : [{'cat' : 1 , 'cow' : 2 },
138
138
{'cat' : 2 , 'cow' : 1 },
139
139
{'cat' : 3 , 'cow' : 1 },
@@ -142,7 +142,7 @@ class Testjsonpath_ng_ext(testscenarios.WithScenarios,
142
142
{'cat' : 2 , 'cow' : 1 },
143
143
{'cat' : 1 , 'cow' : 2 },
144
144
{'cat' : 3 , 'cow' : 3 }]])),
145
- ('sort3_indexed' , dict (string = 'objects[/cow,\cat][0].cat' ,
145
+ ('sort3_indexed' , dict (string = 'objects[/cow,\\ cat][0].cat' ,
146
146
data = {'objects' : [{'cat' : 1 , 'cow' : 2 },
147
147
{'cat' : 2 , 'cow' : 1 },
148
148
{'cat' : 3 , 'cow' : 1 },
0 commit comments