This pAttribute test uses a lot of things, like the HTML and Body attributes, in building the string for comparison. This breaks the "unit" part of the unittest because you've suddenly become dependent on several different pieces of code and if the test fails, you wouldn't know which specific part caused the problem