[Zope-CVS] SVN: zversioning/trunk/src/versioning/demo/ some initial
tests added to proposal-demo
Volker Bachschneider
vbachs at dzug.org
Sun Oct 10 06:23:52 EDT 2004
Log message for revision 27882:
some initial tests added to proposal-demo
Changed:
A zversioning/trunk/src/versioning/demo/tests.py
U zversioning/trunk/src/versioning/demo/vproposal.py
A zversioning/trunk/src/versioning/demo/vproposal.txt
-=-
Added: zversioning/trunk/src/versioning/demo/tests.py
===================================================================
--- zversioning/trunk/src/versioning/demo/tests.py 2004-10-10 09:38:34 UTC (rev 27881)
+++ zversioning/trunk/src/versioning/demo/tests.py 2004-10-10 10:23:51 UTC (rev 27882)
@@ -0,0 +1,5 @@
+import unittest
+from zope.testing.doctest import DocFileSuite
+
+def test_suite():
+ return DocFileSuite('vproposal.txt')
\ No newline at end of file
Modified: zversioning/trunk/src/versioning/demo/vproposal.py
===================================================================
--- zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-10 09:38:34 UTC (rev 27881)
+++ zversioning/trunk/src/versioning/demo/vproposal.py 2004-10-10 10:23:51 UTC (rev 27882)
@@ -16,5 +16,5 @@
self.issues = issues
def proposal(self):
- return "%s\n%s" % (self.title,self.usecase,self.concept,self.todo, \
- self.issues)
\ No newline at end of file
+ return "%s\n%s\n%s\n%s\n%s" % (self.title,self.usecase,self.concept, \
+ self.todo,self.issues)
\ No newline at end of file
Added: zversioning/trunk/src/versioning/demo/vproposal.txt
===================================================================
--- zversioning/trunk/src/versioning/demo/vproposal.txt 2004-10-10 09:38:34 UTC (rev 27881)
+++ zversioning/trunk/src/versioning/demo/vproposal.txt 2004-10-10 10:23:51 UTC (rev 27882)
@@ -0,0 +1,8 @@
+>>> from versioning.demo import vproposal
+>>> vprop = vproposal.VProposal('Proptitle','Usecases are ...',
+... 'Technical Concept','Todo: Steps are ...','Open Issues ...')
+...
+>>> vprop.title, vprop.usecase, vprop.concept
+('Proptitle', 'Usecases are ...', 'Technical Concept')
+>>> vprop.todo, vprop.issues
+('Todo: Steps are ...', 'Open Issues ...')
\ No newline at end of file
More information about the Zope-CVS
mailing list