Esempio n. 1
0
 def test():
     edit_script = []
     edit_script = get_edit_script(case.old_html, case.new_html)
     edited_html = html_patch(case.old_html, edit_script)
     assert_html_equal(
         remove_attributes(edited_html),
         remove_attributes(case.new_html),
     )
Esempio n. 2
0
 def test():
     actual_edit_script = get_edit_script(case.old_html, case.new_html)
     assert_equal(
         case.edit_script,
         actual_edit_script,
         ('These edit scripts do not match:\n%s\n!=\n%s'
          % (pformat(case.edit_script), pformat(actual_edit_script))),
     )