Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/notifications/test_record.py   portfoliyo(Download)
def test_post(mock_record, requested, from_teacher):
    pref = 'notify_%s' % ('teacher_post' if from_teacher else 'parent_text')
    mock_profile = mock.Mock(id=2, **{pref: requested})
    mock_post = mock.Mock(id=3, author=mock.Mock(school_staff=from_teacher))
    record.post(mock_profile, mock_post)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/notifications/render/test_base.py   portfoliyo(Download)
                )
            if new:
                record.post(recip, post)
 
        assert base.send(recip.id)