Skip to content

Commit fef751b

Browse files
committed
Test case for checking isolation under crashes
1 parent e02eace commit fef751b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_rdfa.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ def test_w3c_rdfaprimer(self):
7878
data = rdfae.extract(body, base_url='http://www.example.com/index.html')
7979
self.assertJsonLDEqual(data, expected)
8080

81+
# This is for testing that the fix to issue 116 does not affect
82+
# severely rdfa output even in a presence of a bug in the code
83+
def mocked_fix_order(x, y, z):
84+
raise Exception()
85+
86+
rdfae._fix_order = mocked_fix_order
87+
data = rdfae.extract(body, base_url='http://www.example.com/index.html')
88+
self.assertJsonLDEqual(data, expected)
89+
8190
def test_wikipedia_xhtml_rdfa(self):
8291
fileprefix = 'xhtml+rdfa'
8392
body = get_testdata('wikipedia', fileprefix + '.html')

0 commit comments

Comments
 (0)