Commits

Sam Toyer  committed afcc778

fix ajaxdestroy also

  • Participants
  • Parent commits 70f94ab

Comments (0)

Files changed (1)

File MoinMoin/apps/frontend/_tests/test_frontend.py

             itemnames='["DoesntExist"]',
             ))
 
-    def test_ajaxdestroy(self):
+    def test_ajaxdestroy_item_name_route(self):
         self._test_view_post('frontend.ajaxdestroy', status='200 OK', content_type='application/json', data=['{', '}'], form=dict(
             comment='Test',
             itemnames='["DoesntExist"]',
             ), viewopts=dict(item_name='DoesntExist'))
 
+    def test_ajaxdestroy_no_item_name_route(self):
+        self._test_view_post('frontend.ajaxdestroy', status='200 OK', content_type='application/json', data=['{', '}'], form=dict(
+            comment='Test',
+            itemnames='["DoesntExist"]',
+            ))
+
     def test_ajaxmodify(self):
         self._test_view_post('frontend.ajaxmodify', status='404 NOT FOUND', viewopts=dict(item_name='DoesntExist'))