def METHOD_NAME(self):
    with patch('socket.SIO_KEEPALIVE_VALS', 1, create=True):
        self.assertIsNone(enable_keepalive(Mock(), 10, 5))
    with patch('socket.SIO_KEEPALIVE_VALS', None, create=True):
        for platform in ('linux2', 'darwin', 'other'):
            with patch('sys.platform', platform):
                self.assertIsNone(enable_keepalive(Mock(), 10, 5))