Example #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
Example #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
Example #3
0
 def test_empty(self, client):
     """ No content means no worklist """
     assert worklist().count() == 0
Example #4
0
 def test_unattached_pending(self, client):
     """ unattached content cannot be accessed anyway """
     Type1(state="pending").save()
     assert worklist().count() == 0