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

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

src/p/o/portfoliyo-HEAD/portfoliyo/tests/model/village/test_models.py   portfoliyo(Download)
        post = models.Post.create(rel.elder, rel.student, 'Foo')
 
        assert not unread.is_unread(post, rel.elder)
        assert unread.is_unread(post, rel2.elder)
        # web users only
        assert not unread.is_unread(post, rel3.elder)
        sub = rel.student.posts_in_village.get()
 
        assert unread.is_unread(sub, rel2.elder)
        # not unread for author
        assert not unread.is_unread(sub, rel.elder)