예제 #1
0
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")