Fixed a PyQuery property access that should have been a method call.

- Legacy-Id: 15087
This commit is contained in:
Henrik Levkowetz 2018-04-26 11:51:39 +00:00
parent d599a4d28f
commit fec59ad937

View file

@ -1525,7 +1525,7 @@ Subject: test
r = self.client.post(url, files) r = self.client.post(url, files)
if r.status_code != 302: if r.status_code != 302:
q = PyQuery(r.content) q = PyQuery(r.content)
print(q('div.has-error span.help-block div').text) print(q('div.has-error span.help-block div').text())
self.assertEqual(r.status_code, 302) self.assertEqual(r.status_code, 302)