|
@@ -106,6 +106,19 @@ class ReplyThreadTests(AuthenticatedUserTestCase):
|
|
|
response = self.client.get(self.link, **self.ajax_header)
|
|
|
self.assertEqual(response.status_code, 403)
|
|
|
|
|
|
+ def test_empty_reply_thread_form(self):
|
|
|
+ """empty reply thread form has no crashes"""
|
|
|
+ self.allow_reply_thread({
|
|
|
+ 'can_pin_threads': 1,
|
|
|
+ 'can_close_threads': 1,
|
|
|
+ })
|
|
|
+
|
|
|
+ response = self.client.post(self.link, data={
|
|
|
+ 'submit': True,
|
|
|
+ },
|
|
|
+ **self.ajax_header)
|
|
|
+ self.assertEqual(response.status_code, 200)
|
|
|
+
|
|
|
def test_can_reply_thread(self):
|
|
|
"""can reply to thread"""
|
|
|
self.allow_reply_thread()
|