コード例 #1
0
 def test_attached_pending(self, client):
     """ pending and attached, the way we like it """
     t = Type1(node=Node.root(), state="pending").save()
     assert worklist().count() == 1
     assert worklist()[0] == t.content_ptr
コード例 #2
0
 def test_attached_published(self, client):
     """ published content needs no explicit action """
     Type1(node=Node.root(), state="published").save()
     assert worklist().count() == 0
コード例 #3
0
 def test_empty(self, client):
     """ No content means no worklist """
     assert worklist().count() == 0
コード例 #4
0
 def test_unattached_pending(self, client):
     """ unattached content cannot be accessed anyway """
     Type1(state="pending").save()
     assert worklist().count() == 0