def test_term_random_tag(self, param_test): (root) = param_test tag_attribs = all_tag_attrib(root, 'term', ContextSuggestApi.term_number) value_of_attrib = attrib_value(tag_attribs, 'count') assert word_count(value_of_attrib) >= 1 value_of_tag = tag_value(root, 'term', ContextSuggestApi.term_number) assert value_of_tag.lower().startswith(ContextSuggestApi.term)
def test_categorychild_tag(self, param_test): (root) = param_test value_of_tag = tag_value(root, 'categories/category', '1') assert word_count( value_of_tag ) > 1, '>>> word count of "categories/category" < 1 <<<'
def test_nolink_tag(self, param_test): (root) = param_test value_of_tag = tag_value(root, 'nolink', '1') assert word_count( value_of_tag) >= 1, '>>> word count of "nolink" == 0 <<<'
def test_vector_tag(self, param_test): (root) = param_test value_of_tag = tag_value(root, 'features/vector', '1') assert word_count( value_of_tag) >= 1, '>>> word count of "features/vector" == 0 <<<'
def test_bitmap_tag(self, param_test): (root) = param_test value_of_tag = tag_value(root, 'bitmap', '1') assert word_count( value_of_tag) >= 1, '>>> word count of "bitmap" == 0 <<<'
def test_svg_tag(self, param_test): (root) = param_test value_of_tag = tag_value(root, 'svg', '1') assert word_count(value_of_tag) > 1, '>>> word count of "svg" < 1 <<<'