'A ``LeaseAcquisitionError`` is raised when attempting to acquire
a lease held by another node.'

def test_error_on_acquire_lease_held_by_other_node(self):

    leases = self.leases.acquire(self.now, self.dataset_id, self.node_id)
    node2 = Node(uuid=uuid4())
    exception = self.assertRaises(LeaseError, leases.acquire, self.now, self.dataset_id, node2.uuid)
    expected_error = ((((u'Cannot    acquire    lease    ' + unicode(self.dataset_id)) + u'    for    node    ') + unicode(node2.uuid)) + u':    Lease    already    held    by    another    node')
    self.assertEqual(exception.message, expected_error)
