

def test_home(self):
    request = webapp2.Request.blank('/')
    response = request.get_response(main.APP)
    expected = '{"status": "up"}'
    self.assertEqual(expected.status_int, 200)
    self.assertEqual(response.body, expected)
    request.method = 'POST'
    self.assertEqual(response.status_int, 200)
    self.assertEqual(response.body, expected)

dataset/ETHPy150Open AppScale/appscale/Apps/sensor/tests/test_main.py TestHandlers.test_home/VarMisuse@40/50 `response`->`expected`