Apply formatting scripts.
All checks were successful
All checks were successful
This commit is contained in:
parent
56416f2fd8
commit
15af4212ae
3 changed files with 29 additions and 20 deletions
|
@ -67,7 +67,12 @@ class HL:
|
|||
self.content = content
|
||||
self.children = children
|
||||
|
||||
def assert_matches(self, test_case: unittest.TestCase, doc, accept_trailing_whitespace_changes=False):
|
||||
def assert_matches(
|
||||
self,
|
||||
test_case: unittest.TestCase,
|
||||
doc,
|
||||
accept_trailing_whitespace_changes=False,
|
||||
):
|
||||
test_case.assertEqual(self.title, get_raw(doc.title))
|
||||
|
||||
# Check properties
|
||||
|
@ -85,7 +90,9 @@ class HL:
|
|||
)
|
||||
|
||||
if accept_trailing_whitespace_changes:
|
||||
test_case.assertEqual(get_raw_contents(doc).rstrip(), self.get_raw().rstrip())
|
||||
test_case.assertEqual(
|
||||
get_raw_contents(doc).rstrip(), self.get_raw().rstrip()
|
||||
)
|
||||
else:
|
||||
test_case.assertEqual(get_raw_contents(doc), self.get_raw())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue