[Zope3-checkins] CVS: Products3/z3checkins/tests - test_message.py:1.7
Marius Gedminas
mgedmin@codeworks.lt
Fri, 18 Apr 2003 02:57:49 -0400
Update of /cvs-repository/Products3/z3checkins/tests
In directory cvs.zope.org:/tmp/cvs-serv1143/tests
Modified Files:
test_message.py
Log Message:
z3checkins: do not place bookmarks if the user is not looking at the first
batch.
=== Products3/z3checkins/tests/test_message.py 1.6 => 1.7 ===
--- Products3/z3checkins/tests/test_message.py:1.6 Wed Apr 16 18:01:48 2003
+++ Products3/z3checkins/tests/test_message.py Fri Apr 18 02:57:48 2003
@@ -546,6 +546,17 @@
('bookmarks', '2003-01-04T21:33:04-05:00',
{'max_age': 31536000}))
+ def test_placeBookmark_not_at_start(self):
+ from zopeproducts.z3checkins.message import ContainerView
+ from zopeproducts.z3checkins.message import FixedTimezone
+ view = ContainerView()
+ view.context = {'x': 123, 'y': object(),
+ 'z': MessageStub(date=datetime(2003, 1, 4, 21, 33, 4,
+ tzinfo=FixedTimezone(-5*60)))}
+ view.request = RequestStub(start=1)
+ view.placeBookmark()
+ self.assertEquals(view.request._cookies, ())
+
def test_placeBookmark_no_new_checkins(self):
from zopeproducts.z3checkins.message import ContainerView
from zopeproducts.z3checkins.message import FixedTimezone