"""Check that HTML is properly converted to text."""
deftest_your_alerts_pages_availability(self):
"""webalert - HTML to text conversion"""
frominvenio.htmlparserimportget_as_text
out=get_as_text(5)
self.assertIn("High energy cosmic rays striking atoms at the top of the atmosphere give the rise to showers of particles striking the Earth's surface",out)
self.assertIn("Des rayons cosmiques de haute energie heurtent des atomes dans la haute atmosphere et donnent ainsi naissance a des gerbes de particules projetees sur la surface terrestre",out)
self.assertIn("CERN-DI-9905005",out)
out=get_as_text(74)
self.assertIn("Quasinormal modes of Reissner-Nordstrom Anti-de Sitter Black Holes",out)
self.assertIn("hep-th/0003295",out)
self.assertIn("Complex frequencies associated with quasinormal modes for large Reissner-Nordstr$\\ddot{o}$m Anti-de Sitter black holes have been computed.",out)
self.assertIn("Phys. Lett., B :481 2000 79-88",out)
"""webalert - Juliet does not get Theses in alert"""
self.assert_('-> these records have been filtered out, as user id 6 did not have access:\n[35, 36, 37, 38, 39, 40, 41, 42'inself.alerts['Juliet alert 1'])