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

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

src/p/o/portfoliyo-HEAD/portfoliyo/tests/view/village/test_forms.py   portfoliyo(Download)
    def test_invite_new_creates_profile(self, db):
        rel = factories.RelationshipFactory.create()
        form = forms.InviteTeacherForm(
            self.data(email='bar@EXAMPLE.com'), rel=rel)
        assert form.is_valid(), dict(form.errors)
    def test_invite_new_sends_invite_email(self, db):
        rel = factories.RelationshipFactory.create()
        form = forms.InviteTeacherForm(
            self.data(email='bar@EXAMPLE.com'), rel=rel)
        assert form.is_valid(), dict(form.errors)
            rel=rel,
            )
        assert form.is_valid(), dict(form.errors)
        profile = form.save()
 
            )
 
        assert form.is_valid(), dict(form.errors)
        form.save()
 
            rel=rel,
            )
        assert form.is_valid(), dict(form.errors)
        profile = form.save()