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

All Samples(5)  |  Call(5)  |  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)
        assert parent == form.save(editor=factories.ProfileFactory.create())
        parent = utils.refresh(parent)
        assert parent.name == 'New Name'
            )
        assert form.is_valid(), dict(form.errors)
        profile = form.save(editor=factories.ProfileFactory.create())
 
        assert profile.role == "mom"
            )
        assert form.is_valid(), dict(form.errors)
        profile = form.save(editor=factories.ProfileFactory.create())
 
        assert profile.role == "aunt"
            )
        assert form.is_valid(), dict(form.errors)
        profile = form.save(editor=factories.ProfileFactory.create())
 
        assert profile.role == "aunt"
            )
        assert form.is_valid(), dict(form.errors)
        profile = form.save(editor=model.elder_in_context(teacher_rel))
 
        assert profile.phone == '+17894561234'