TestUtil
Implementation of the test utilities
PrintError
Canonical path: TestHelper.TestUtil.PrintError
Bases: TestCase
helper class
__init__
initialize
Parameters:
-
new_text
(str
) –new element text
-
indent_count
(int
) –indent count
execute
execute the assert
Parameters:
-
ele1_str
(str
) –strings from the first element
-
ele2_str
(str
) –strings from the second element
-
str1
(str
) –row string from the first element
-
str2
(str
) –row string from the second element
-
info_str
–info string
compare_element_strings
compare_element_strings(
ele1_str: str,
ele2_str: str,
indent_count: int = 41,
compare_text: bool = False,
)
Compare two element string with "real value compare
Parameters:
-
ele1_str
(str
) –string from the first element
-
ele2_str
(str
) –string from the second element
-
indent_count
(int
, default:41
) –indent count
-
compare_text
(bool
, default:False
) –compare the text left from the =
compare_file_with_text
Compare a file with a text
Parameters:
-
file_name
(str
) –name of the file
-
text
(str
) –text
-
indent_count
(int
, default:41
) –indent count
compare_vertices
compare_vertices(
line_index1: int,
ele1_str_list: List[str],
ele2_str_list: List[str],
print_error: PrintError,
) -> int
compare the vertices
get_handle_string
Get the handle string from the building element list
Placeholder