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/view/village/test_forms.py   portfoliyo(Download)
 
        assert form.is_valid(), dict(form.errors)
        group = form.save()
 
        assert set(group.students.all()) == {rel.student}
        target = 'portfoliyo.tasks.record_notification.delay'
        with mock.patch(target) as mock_record_notification:
            form.save()
 
        # no notification for other_elder_rel.elder, because they already had a