def test_journal(self): scraper = ScraperJhu() file = open(os.path.join(os.path.dirname(__file__), "data", "jhu_ajm.html")) page_text = file.read() file.close() current_issue_url = scraper.scrape_journal(page_text) expected_url = 'http://muse.jhu.edu/journals/american_journal_of_mathematics/toc/ajm.134.6.html' assert current_issue_url == expected_url