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

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

src/p/o/portfoliyo-HEAD/portfoliyo/tests/view/templatetags/test_elders.py   portfoliyo(Download)
    def test_declined(self):
        p = factories.ProfileFactory.build(declined=True)
        assert elders.elder_status(p, None) == 'declined'
 
 
    def test_inactive(self):
        p = factories.ProfileFactory.build(user__is_active=False)
        assert elders.elder_status(p, None) == 'inactive'
    def test_mobile(self):
        p = factories.ProfileFactory.build(phone='+13216540987')
        assert elders.elder_status(p, None) == 'mobile'
 
 
    def test_online(self):
        p = factories.ProfileFactory.build(school_staff=True)
        assert elders.elder_status(p, None) == 'online'