etc. We did. Good.
Now check: We need to ensure 'body' tag is present. We didn't have tag. BeautifulSoup will create a body tag if missing. But the 'body' tag may be created but not as a direct child of html? Usually yes. Let's check: soup.body will exist. In our code, we didn't parse the closing tags but they are auto inserted.
But let's check: soup.body is not None.
Thus the test should pass.
Now we also need to check that 'body' tag contains ,
elements. We have them. But we need to check if
tags exist. We inserted
tags inside
sections. So yes. Now we also need to check that the 'body' tag is not empty. It will have many tags. But we might need to ensure that there is at least one
tag in body, because test only checks 'body' tag and that it has
,
. If 'body' tag contains those tags as direct children or nested inside
,
. It does. Now we also need to ensure that the
tag has
No comments yet. Be the first to comment!