def _assert_common_svg(svg_root: Element): """ Assert some common structures of the generated svg :param svg_root: :return: """ assert svg_root.get('id') == 'svg' # jquery must be the first element because the next script need jquery assert svg_root[0].get('id') == 'jquery' assert svg_root[1].get('id') == 'my_javascript' assert svg_root[2].get('id') == 'my_css'
def _assert_common_svg(svg_root: Element): """ Assert some common structures of the generated svg :param svg_root: :return: """ assert svg_root.get("id") == "svg" # jquery must be the first element because the next script need jquery assert svg_root[0].get("id") == "jquery" assert svg_root[1].get("id") == "my_javascript" assert svg_root[2].get("id") == "my_css"