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