

def testStatusCodes(self):
    resp1 = self.client.get('/')
    resp2 = self.client.get('/?query=*')
    resp3 = self.client.get('/?query=uid:GjR1jckW1y6')
    resp4 = self.client.get('/?query=uid:GjR1jckW1y6%20AND%20status:failed')
    resp5 = self.client.get('/nope')
    self.assertEqual(resp1.status_code, 200)
    self.assertEqual(resp2.status_code, 200)
    self.assertEqual(resp3.status_code, 200)
    self.assertEqual(resp4.status_code, 200)
    self.assertNotEqual(resp5.status_code, 200)

dataset/ETHPy150Open grigorescu/Brownian/Brownian/view/tests.py elasticSearchTests.testStatusCodes/original