def test_assert_definition_wrong_definition(): h = HtmlAssertions() h.html = '<html><dl><dt>Term</dt><dd>Def</dd></dl></html>' with pytest.raises(AssertionError): h.assert_definition('Term', 'Wrong Def')
def test_assert_definition(): h = HtmlAssertions() h.html = '<html><dl><dt>Term</dt><dd>Def</dd></dl></html>' h.assert_definition('Term', 'Def')