Commit a8a7267
authored
Fix and improve .assertValidHTML() test method (#1597)
* Make .assertValidHTML() parse passed content
Prior to this commit, the BaseTestCase.assertValidHTML() method was not
parsing the content from the provided argument, but was instead parsing
self.panel.content. For most usages, the passed in content was the same
as self.panel.content, but for the
TemplatesPanelTestCase.test_template_repr() test case it was not,
resulting in an invalid test.
* Fix test failure exposed by previous commit
* Remove unused .assertValidHTML() msg argument
Allows removal of a call to the internal TestCase._formatMessage()
method.
* Tweak .assertValidHTML() exception message
Since the passed in HTML does not necessarily represent the panel
content, change the message to no longer reference "Content".1 parent 6a70876 commit a8a7267
2 files changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments