Пример #1
0
    def test_when_no_taskid(self, pyramid_request):
        result = mailer_index(pyramid_request)

        assert result == {"taskid": None}
Пример #2
0
    def test_with_taskid(self, pyramid_request):
        pyramid_request.params["taskid"] = "abcd1234"

        result = mailer_index(pyramid_request)

        assert result == {"taskid": "abcd1234"}
Пример #3
0
    def test_with_taskid(self, pyramid_request):
        pyramid_request.params['taskid'] = 'abcd1234'

        result = mailer_index(pyramid_request)

        assert result == {'taskid': 'abcd1234'}