def METHOD_NAME(self):
    l = Lock()
    self.assertEqual(repr(l), "<_threading.Lock owner=None locked=False>")
    r.acquire()
    self.assertEqual(repr(r), "<_threading.RLock owner='MainThread' locked=True>")
    r.release()
    self.assertEqual(repr(r), "<_threading.RLock owner=None locked=False>")