def cloud_added(context, cloud, seconds): end_time = time() + int(seconds) while time() < end_time: button = search_for_button(context, cloud, btn_cls='cloud-btn') if button: return sleep(2) assert False, u'%s is not added within %s seconds' % (cloud, seconds)
def cloud_added(context, cloud, seconds): end_time = time() + int(seconds) while time() < end_time: button = search_for_button(context, cloud, btn_cls='cloud-btn') if button: return sleep(2) assert False, u'%s is not added within %s seconds' %(cloud, seconds)
def cloud_deleted(context, cloud): button = search_for_button(context, cloud, btn_cls='cloud-btn') assert not button, ""
def backend_deleted(context, backend): button = search_for_button(context, backend, btn_cls='cloud-btn') assert not button, ""