def has_other_option(tree):
    return utils.has_freebird_div(tree, "RadioOtherChoice")
示例#2
0
 def is_this_question(tree):
     return utils.has_freebird_div(tree, "TextLongText")
示例#3
0
def has_year(tree):
    return utils.has_freebird_div(tree, "DateYearInput")
示例#4
0
def has_time(tree):
    return utils.has_freebird_div(tree, "DateTimeInputs")
示例#5
0
    def test_exact_class_valid(self, tree, find_name):
        result = has_freebird_div(tree, find_name, exact=True)

        assert result is True
示例#6
0
 def is_this_question(tree):
     return utils.has_freebird_div(tree, "DateDateInput")
示例#7
0
    def test_not_exact_by_default(self, tree, find_name):
        result = has_freebird_div(tree, find_name)

        assert result is True
示例#8
0
    def test_valid(self, tree, find_name):
        result = has_freebird_div(tree, find_name)

        assert result is True
示例#9
0
    def test_does_not_contain(self, tree, find_name):
        result = has_freebird_div(tree, find_name)

        assert result is False
示例#10
0
 def is_this_question(tree):
     return utils.has_freebird_div(tree, "CheckboxChoice")
示例#11
0
def has_other_option(tree):
    return utils.has_freebird_div(tree, "CheckboxOtherInputElement")