'Verifies floatingip reaches the given status
:param dict floating_ip: floating IP dict to check status
:param status: target status
:raises: AssertionError if status doesn\'t match'

def check_floating_ip_status(self, floating_ip, status):

    floatingip_id = floating_ip['id']
    def refresh():
        result = self.floating_ips_client.show_floatingip(floatingip_id)['floatingip']
        return (status == result['status'])
    if (not test_utils.call_until_true(refresh, CONF.network.build_timeout, CONF.network.build_interval)):
        floating_ip = self.floating_ips_client.show_floatingip(floatingip_id)['floatingip']
        self.assertEqual(status, floating_ip['status'], message='FloatingIP:    {fp}    is    at    status:    {cst}.    failed        to    reach    status:    {st}'.format(fp=floating_ip, cst=floating_ip['status'], st=status))
    LOG.info('FloatingIP:    {fp}    is    at    status:    {st}'.format(fp=floating_ip, st=status))
