def METHOD_NAME(self):
    elector = LeaderElector(self.kube)
    cm = {
        'kind': 'ConfigMap',
        'apiVersion': 'v1',
        'data': {},
        'metadata': {
            'name': 'datadog-leader-elector',
            'namespace': 'default',
            'resourceVersion': '5563782',
            'creationTimestamp': '2017-08-21T17:37:32Z',
            'annotations': {'acquired_time': '2017-08-21T17:37:32.514660',
                            'creator': 'dd-agent-284pl'
                            },
            'selfLink': '/api/v1/namespaces/default/configmaps/datadog-leader-elector',
            'uid': '697b957c-8697-11e7-b62f-42010af002d4'
        }
    }
    self.assertTrue(elector._is_lock_expired(cm))
    cm['metadata']['annotations'][ACQUIRE_TIME_ANNOTATION] = '3017-08-21T17:37:32.514660'
    self.assertFalse(elector._is_lock_expired(cm))