def test_renders_atom(self, pyramid_request, render_atom): stream_atom(pyramid_request) render_atom.assert_called_once_with(request=pyramid_request, annotations=mock.sentinel.fetched_annotations, atom_url='http://example.com/thestream.atom', html_url='http://example.com/thestream', title='Some feed', subtitle='It contains stuff')
def test_returns_rendered_atom(self, pyramid_request, render_atom): result = stream_atom(pyramid_request) assert result == render_atom.return_value