diff options
Diffstat (limited to 'test_generate_html.py')
-rw-r--r-- | test_generate_html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test_generate_html.py b/test_generate_html.py index eb5a0f8..05e956e 100644 --- a/test_generate_html.py +++ b/test_generate_html.py @@ -44,8 +44,8 @@ class TestProcessLosungen(unittest.TestCase): script_element = root.xpath("//head/script") self.assertEqual(len(script_element), 1) self.assertEqual(script_element[0].attrib["src"], "hesla.js") - script_element = root.xpath("//head/style") - self.assertEqual(len(script_element), 1) + style_element = root.xpath("//head/link[@rel='stylesheet']") + self.assertEqual(len(style_element), 1) meta_element = root.xpath("//head/meta[@content]") self.assertEqual(unicode(meta_element[0].attrib["content"]), "width=device-width, initial-scale=1.0, " + \ |