コード例 #1
0
    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')
コード例 #2
0
    def test_returns_rendered_atom(self, pyramid_request, render_atom):
        result = stream_atom(pyramid_request)

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

        assert result == render_atom.return_value