Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
test for the width and height attributes inside the image in the output #601
So, you want to check the content of the output, specifically we want to check whether there is a image element that has width and height attributes set. The
To run just this test it's easiest to run
To be able to inspect the state of the objects in the test, if you inject a python debugging trace (
Then it's a matter of writing the assert statements that directly address what you about, in this case that there are width and height attributes that are present.