コード例 #1
0
    def test_renders_rss(self, pyramid_request, render_rss):
        stream_rss(pyramid_request)

        render_rss.assert_called_once_with(request=pyramid_request,
                                           annotations=mock.sentinel.fetched_annotations,
                                           rss_url='http://example.com/thestream.rss',
                                           html_url='http://example.com/thestream',
                                           title='Some feed',
                                           description='Stuff and things')
コード例 #2
0
    def test_returns_rendered_rss(self, pyramid_request, render_rss):
        result = stream_rss(pyramid_request)

        assert result == render_rss.return_value
コード例 #3
0
ファイル: feeds_test.py プロジェクト: nlisgo/h
    def test_returns_rendered_rss(self, pyramid_request, render_rss):
        result = stream_rss(pyramid_request)

        assert result == render_rss.return_value