def test_when_no_taskid(self, pyramid_request): result = mailer_index(pyramid_request) assert result == {"taskid": None}
def test_with_taskid(self, pyramid_request): pyramid_request.params["taskid"] = "abcd1234" result = mailer_index(pyramid_request) assert result == {"taskid": "abcd1234"}
def test_with_taskid(self, pyramid_request): pyramid_request.params['taskid'] = 'abcd1234' result = mailer_index(pyramid_request) assert result == {'taskid': 'abcd1234'}