def wait_for_addr(self, timeout=5):
    test_function = (lambda : self.last_message.get('addr'))
    self.wait_until(test_function, timeout=timeout)
def wait_for_addr(self, timeout=5):
    test_function = (lambda : self.last_message.get('addr'))
    self.wait_until(test_function, timeout=timeout)