Example #1
0
 def test_author_absent(self):
     sample = load_sample("si-game.sample.html")
     doc = Document(sample)
     assert '[no-author]' == doc.author()
Example #2
0
 def test_author_present(self):
     sample = load_sample(
         "the-hurricane-rubin-carter-denzel-washington.html")
     doc = Document(sample)
     assert 'Alex von Tunzelmann' == doc.author()