def test_non_POST(self):
        req = self.req("get", "/the/url", data={"action-doit": "3"})

        self.view(req)

        self.assertEqual(self.mock_model._base_manager.get.call_count, 0)
Decorator ignores non-POST requests.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py/ActionsTest.test_non_POST