Example #1
0
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)
Example #2
0
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)
Example #3
0
def cloud_deleted(context, cloud):
    button = search_for_button(context, cloud, btn_cls='cloud-btn')
    assert not button, ""
Example #4
0
def cloud_deleted(context, cloud):
    button = search_for_button(context, cloud, btn_cls='cloud-btn')
    assert not button, ""
Example #5
0
def backend_deleted(context, backend):
    button = search_for_button(context, backend, btn_cls='cloud-btn')
    assert not button, ""