[Zope3-checkins] CVS: Products3/demo/messageboard/step2/tests - test_message.py:1.2 test_messageboard.py:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Aug 20 15:03:01 EDT 2003


Update of /cvs-repository/Products3/demo/messageboard/step2/tests
In directory cvs.zope.org:/tmp/cvs-serv30024/step2/tests

Modified Files:
	test_message.py test_messageboard.py 
Log Message:
Updated Step 2.


=== Products3/demo/messageboard/step2/tests/test_message.py 1.1 => 1.2 ===
--- Products3/demo/messageboard/step2/tests/test_message.py:1.1	Sat Jun  7 07:24:51 2003
+++ Products3/demo/messageboard/step2/tests/test_message.py	Wed Aug 20 14:03:00 2003
@@ -32,6 +32,12 @@
     def makeTestData(self):
         return DefaultTestData()
 
+    def getUnknownKey(self):
+        return '10'
+
+    def getBadKeyTypes(self):
+        return [None, ['foo'], 1, '\xf3abc']
+
     def test_interface(self):
         self.assert_(IMessage.isImplementedBy(
             self.makeTestObject()))


=== Products3/demo/messageboard/step2/tests/test_messageboard.py 1.1 => 1.2 ===
--- Products3/demo/messageboard/step2/tests/test_messageboard.py:1.1	Sat Jun  7 07:24:51 2003
+++ Products3/demo/messageboard/step2/tests/test_messageboard.py	Wed Aug 20 14:03:00 2003
@@ -31,6 +31,12 @@
     def makeTestData(self):
         return DefaultTestData()
 
+    def getUnknownKey(self):
+        return '10'
+
+    def getBadKeyTypes(self):
+        return [None, ['foo'], 1, '\xf3abc']
+
     def test_interface(self):
         self.assert_(IMessageBoard.isImplementedBy(
             self.makeTestObject()))




More information about the Zope3-Checkins mailing list