

def test_responding(self):
    self.conn.request('GET', '/ping')
    res = self.conn.getresponse()
    self.assertEquals(res.status, 200)
    self.assertEquals(json.loads(res.read()), 'pong')

dataset/ETHPy150Open natduca/quickopen/src/daemon_test.py DaemonTest.test_responding/original