Skip to content

Commit 47463ea

Browse files
committed
Changed a test case to look at the area being tested, rather than the whole page, to avoid test failures due to for instance new menu entries.
- Legacy-Id: 13179
1 parent 8dbff5d commit 47463ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/doc/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ def test_document_draft(self):
497497
self.assertTrue("Deimos street" in unicontent(r))
498498
q = PyQuery(r.content)
499499
self.assertEqual(len(q('.rfcmarkup pre')), 4)
500-
self.assertEqual(len(q('span.h1')), 2)
501-
self.assertEqual(len(q('a[href]')), 116)
500+
self.assertEqual(len(q('.rfcmarkup span.h1')), 2)
501+
self.assertEqual(len(q('.rfcmarkup a[href]')), 30)
502502

503503
# expired draft
504504
draft.set_state(State.objects.get(type="draft", slug="expired"))

0 commit comments

Comments
 (0)