[Zope3-checkins] CVS: Products3/z3checkins/tests -
test_message.py:1.23
Gintautas Miliauskas
gintas at pov.lt
Sat Mar 6 17:16:51 EST 2004
Update of /cvs-repository/Products3/z3checkins/tests
In directory cvs.zope.org:/tmp/cvs-serv1980/tests
Modified Files:
test_message.py
Log Message:
Renamed isImplementedBy() (deprecated) calls to providedBy().
=== Products3/z3checkins/tests/test_message.py 1.22 => 1.23 ===
--- Products3/z3checkins/tests/test_message.py:1.22 Wed Mar 3 08:46:34 2004
+++ Products3/z3checkins/tests/test_message.py Sat Mar 6 17:16:50 2004
@@ -117,7 +117,7 @@
sample_msg1.seek(0)
parser = CheckinMessageParser()
msg = parser.parse(sample_msg1)
- self.assert_(ICheckinMessage.isImplementedBy(msg))
+ self.assert_(ICheckinMessage.providedBy(msg))
self.assertEquals(msg.message_id, "42 at bar.com")
self.assertEquals(msg.author_name, "Foo Bar")
self.assertEquals(msg.author_email, "foo.bar at bar.com")
@@ -139,7 +139,7 @@
sample_msg2.seek(0)
parser = CheckinMessageParser()
msg = parser.parse(sample_msg2)
- self.assert_(ICheckinMessage.isImplementedBy(msg))
+ self.assert_(ICheckinMessage.providedBy(msg))
self.assertEquals(msg.message_id, "42 at bar.com")
self.assertEquals(msg.author_name, "Foo Bar")
self.assertEquals(msg.author_email, "foo.bar at bar.com")
@@ -167,7 +167,7 @@
sample_import_msg.seek(0)
parser = CheckinMessageParser()
msg = parser.parse(sample_import_msg)
- self.assert_(ICheckinMessage.isImplementedBy(msg))
+ self.assert_(ICheckinMessage.providedBy(msg))
self.assertEquals(msg.message_id, "42 at bar.com")
self.assertEquals(msg.author_name, "Foo Bar")
self.assertEquals(msg.author_email, "foo.bar at bar.com")
@@ -189,8 +189,8 @@
simple_msg.seek(0)
parser = CheckinMessageParser()
msg = parser.parse(simple_msg)
- self.assert_(IMessage.isImplementedBy(msg))
- self.assert_(not ICheckinMessage.isImplementedBy(msg))
+ self.assert_(IMessage.providedBy(msg))
+ self.assert_(not ICheckinMessage.providedBy(msg))
self.assertEquals(msg.message_id, "q$w$e$r$t$y at example.com")
self.assertEquals(msg.author_name, "John Doe")
self.assertEquals(msg.author_email, "john at example.com")
@@ -206,7 +206,7 @@
svn_msg.seek(0)
parser = CheckinMessageParser()
msg = parser.parse(svn_msg)
- self.assert_(ICheckinMessage.isImplementedBy(msg))
+ self.assert_(ICheckinMessage.providedBy(msg))
self.assertEquals(msg.message_id, "20030908101551.6F900C32F at mail.pov.lt")
self.assertEquals(msg.author_name, "Albertas Agejevas")
self.assertEquals(msg.author_email, "alga at pov.lt")
@@ -226,7 +226,7 @@
svn_msg2.seek(0)
parser = CheckinMessageParser()
msg = parser.parse(svn_msg2)
- self.assert_(ICheckinMessage.isImplementedBy(msg))
+ self.assert_(ICheckinMessage.providedBy(msg))
self.assertEquals(msg.message_id, "20030908101551.6F900C32F at mail.pov.lt")
self.assertEquals(msg.author_name, "Albertas Agejevas")
self.assertEquals(msg.author_email, "alga at pov.lt")
@@ -246,7 +246,7 @@
svn_msg3.seek(0)
parser = CheckinMessageParser()
msg = parser.parse(svn_msg3)
- self.assert_(IMessage.isImplementedBy(msg))
+ self.assert_(IMessage.providedBy(msg))
self.assertEquals(msg.message_id, "20030909101551.6F900C32F at mail.pov.lt")
self.assertEquals(msg.author_name, "Albertas Agejevas")
self.assertEquals(msg.author_email, "alga at pov.lt")
@@ -507,7 +507,7 @@
res = view.checkins()
self.assertEquals(len(res), 4)
self.assertEquals(res[0].date, 4)
- self.assert_(IBookmark.isImplementedBy(res[1]))
+ self.assert_(IBookmark.providedBy(res[1]))
self.assertEquals(res[2].date, 2)
self.assertEquals(res[3].date, 1)
@@ -515,7 +515,7 @@
res = view.checkins()
self.assertEquals(len(res), 4)
self.assertEquals(res[0].date, 4)
- self.assert_(IBookmark.isImplementedBy(res[1]))
+ self.assert_(IBookmark.providedBy(res[1]))
self.assertEquals(res[2].date, 2)
self.assertEquals(res[3].date, 1)
@@ -523,16 +523,16 @@
res = view.checkins()
self.assertEquals(len(res), 5)
self.assertEquals(res[0].date, 4)
- self.assert_(IBookmark.isImplementedBy(res[1]))
+ self.assert_(IBookmark.providedBy(res[1]))
self.assertEquals(res[2].date, 2)
- self.assert_(IBookmark.isImplementedBy(res[3]))
+ self.assert_(IBookmark.providedBy(res[3]))
self.assertEquals(res[4].date, 1)
res = view.checkins(start=1, size=1)
self.assertEquals(len(res), 3)
- self.assert_(IBookmark.isImplementedBy(res[0]))
+ self.assert_(IBookmark.providedBy(res[0]))
self.assertEquals(res[1].date, 2)
- self.assert_(IBookmark.isImplementedBy(res[2]))
+ self.assert_(IBookmark.providedBy(res[2]))
def test_bookmarks(self):
from zopeproducts.z3checkins.message import ContainerView
@@ -1085,7 +1085,7 @@
def test_interface(self):
from zopeproducts.z3checkins.folder import MessageSized
from zope.app.size.interfaces import ISized
- self.assert_(ISized.isImplementedBy(MessageSized(MessageStub())))
+ self.assert_(ISized.providedBy(MessageSized(MessageStub())))
def test_sizeForSorting(self):
from zopeproducts.z3checkins.folder import MessageSized
More information about the Zope3-Checkins
mailing list