

def testOkHandler(self):
    handler = server.OkHandler()

    class MockResponse(object):
        out = cStringIO.StringIO()
    handler.response = MockResponse()
    handler.get()
    ans = self.response.out.getvalue()
    self.assertEqual(ans, 'ok')

dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/src/server_test.py ServerTest.testOkHandler/VarMisuse@52/62 `handler`->`self`