In Mock-SASv2.1, the function "def isThereMoreThenOneValueInside(self,value):" in Assert.py is not working when determine if there are multiple values in the parameters. especially when in the case of {"$or":["A","B"]}, or " {"$or":[["A"],["B"]]}. It gave the failure.
I just made some work around to modify code as below:
if("$or" in str(value)):
strValue = str(value)
#print strValue
indexOfOr= strValue.index("$or")
if indexOfOr <= 14
return False
The idea here is that when '$or" is in the beginning of whole
json object, then treat it as no multiple values inside. -- Of course this is just a workaround, please provide comments for more good solution.
In Mock-SASv2.1, the function "def isThereMoreThenOneValueInside(self,value):" in Assert.py is not working when determine if there are multiple values in the parameters. especially when in the case of {"$or":["A","B"]}, or " {"$or":[["A"],["B"]]}. It gave the failure.
I just made some work around to modify code as below:
The idea here is that when '$or" is in the beginning of whole
json object, then treat it as no multiple values inside. -- Of course this is just a workaround, please provide comments for more good solution.