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')
def test_returns_rendered_rss(self, pyramid_request, render_rss): result = stream_rss(pyramid_request) assert result == render_rss.return_value