

def testQueryQuote(self):
    query = 'ts:[* TO 1340647651797] AND !uid:&quot;lkaub98ab&quot; AND (host:"google.com" OR host:yahoo.com") AND notice:&quot;SSL::Invalid_Server_Cert&quot;'
    expectedResult = 'ts:[* TO 1340647651797] AND !uid:"lkaub98ab" AND (host:"google.com" OR host:yahoo.com") AND notice:"SSL::Invalid_Server_Cert"'
    self.assertEqual(utils.es.queryEscape(query), expectedResult)

dataset/ETHPy150Open grigorescu/Brownian/Brownian/view/tests.py nonElasticSearchTests.testQueryQuote/original