

def test_non_POST(self):
    'Decorator ignores non-POST requests.'
    req = self.req('get', '/the/url', data={
        'action-doit': '3',
    })
    self.view(req)
    self.assertEqual(self.mock_model._base_manager.get.call_count, 0)

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py ActionsTest.test_non_POST/original