Commit 9e37c8a
Matthew Fisher
ref(tests): use assertContains() instead of assertEquals
In Python 3, Django's HTTPResponse.content contains bytes, which
becomes an issue if comparing against a string in tests. The
preferred solution is to rely on assertContains() and assertNotContains().
See https://docs.djangoproject.com/es/1.9/topics/python3/#httprequest-and-httpresponse-objects1 parent 825e46a commit 9e37c8a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments