def test_template_render_with_context():
    with patch.object(service_finder.template.Template, 'render') as mock_template:
        service_finder.template.Template.render = Mock()
        rendered_page = service_finder.render_schedule(render_context)
        service_finder.template.Template.render.assert_called_once_with(render_context)
def test_template_rendered_page():
    rendered_page = service_finder.render_schedule(render_context)
    print rendered_page
    assert 'noonish' in rendered_page
    assert '<h1>Stop #22</h1>' in rendered_page