def test_no_label(self): from lettuce_webdriver.util import find_field_by_label assert not find_field_by_label(world.browser, 'text', 'NoSuchLabel')
def test_find_by_label(self): from lettuce_webdriver.util import find_field_by_label assert find_field_by_label(world.browser, 'text', 'Username:')
def test_no_label(self): from lettuce_webdriver.util import find_field_by_label assert find_field_by_label(world.browser, "text", "NoSuchLabel") is False