def test_bad_action(self):
        req = self.req("post", "/the/url", data={"action-bad": "3"})

        res = self.view(req)

        self.assertEqual(self.mock_model._base_manager.get.call_count, 0)
        self.assertEqual(res.status_code, 302)
Unknown action is handled the same as no action.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py/ActionsTest.test_bad_action