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

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

src/p/o/portfoliyo-HEAD/portfoliyo/tests/sms/test_hook.py   portfoliyo(Download)
    def test_no_students(self, db):
        parent = factories.ProfileFactory.create()
 
        res = hook.interpolate_teacher_names(u'%s', parent)
 
            )
 
        res = hook.interpolate_teacher_names(u'%s', parent_rel.elder)
 
        assert res == u"Mrs. Dodd"
            )
 
        res = hook.interpolate_teacher_names(u'%s', parent_rel.elder)
 
        assert res in {u"Mrs. Dodd & Mr. Todd", u"Mr. Todd & Mrs. Dodd"}
            )
 
        res = hook.interpolate_teacher_names(u'%s', rel1.elder)
 
        assert res in {u"Mrs. Dodd & Mr. Todd", u"Mr. Todd & Mrs. Dodd"}
            )
 
        res = hook.interpolate_teacher_names(u'%s', parent_rel.elder)
 
        assert res == u"Frankie's teachers"