[Pymoul-svn] SF.net SVN: pymoul: [265] pymoul/trunk
Status: Alpha
Brought to you by:
tiran
From: <ti...@us...> - 2007-03-19 09:35:01
|
Revision: 265 http://pymoul.svn.sourceforge.net/pymoul/?rev=265&view=rev Author: tiran Date: 2007-03-19 02:19:33 -0700 (Mon, 19 Mar 2007) Log Message: ----------- Fixed unit tests Modified Paths: -------------- pymoul/trunk/Makefile.in pymoul/trunk/src/moul/time/edergira.py pymoul/trunk/src/moul/time/podage.py Modified: pymoul/trunk/Makefile.in =================================================================== --- pymoul/trunk/Makefile.in 2007-03-19 09:10:53 UTC (rev 264) +++ pymoul/trunk/Makefile.in 2007-03-19 09:19:33 UTC (rev 265) @@ -41,7 +41,7 @@ test_build: build PYTHONPATH="src" $(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS) -test_inplace: +test_inplace: inplace PYTHONPATH="src" $(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS) doc_html: Modified: pymoul/trunk/src/moul/time/edergira.py =================================================================== --- pymoul/trunk/src/moul/time/edergira.py 2007-03-19 09:10:53 UTC (rev 264) +++ pymoul/trunk/src/moul/time/edergira.py 2007-03-19 09:19:33 UTC (rev 265) @@ -35,9 +35,9 @@ <type 'generator'> >>> gen.next() +(0, datetime.datetime(2007, 3, 8, 4, 15, tzinfo=<UTC>), datetime.datetime(2007, 3, 8, 6, 30, tzinfo=<UTC>), datetime.datetime(2007, 3, 8, 11, 30, tzinfo=<UTC>)) +>>> gen.next() (1, datetime.datetime(2007, 3, 8, 14, 15, tzinfo=<UTC>), datetime.datetime(2007, 3, 8, 16, 30, tzinfo=<UTC>), datetime.datetime(2007, 3, 8, 21, 30, tzinfo=<UTC>)) ->>> gen.next() -(2, datetime.datetime(2007, 3, 9, 0, 15, tzinfo=<UTC>), datetime.datetime(2007, 3, 9, 2, 30, tzinfo=<UTC>), datetime.datetime(2007, 3, 9, 7, 30, tzinfo=<UTC>)) """ __author__ = "Christian Heimes" __version__ = "$Id" Modified: pymoul/trunk/src/moul/time/podage.py =================================================================== --- pymoul/trunk/src/moul/time/podage.py 2007-03-19 09:10:53 UTC (rev 264) +++ pymoul/trunk/src/moul/time/podage.py 2007-03-19 09:19:33 UTC (rev 265) @@ -17,12 +17,13 @@ # """pyMoul Pod age time +>>> pod18 = getPodAge('Negilahn') >>> pod18.gatenumber 18 ->>> getPodAge('Negilahn') is pod18 +>>> pod18.name +'Negilahn' +>>> getPodAgeByNumber(18) is pod18 or getPodAgeByNumber(18) True ->>> getPodAgeByNumber(18) is pod18 -True >>> padneg = PodAgeTime('Negilahn') >>> for n, dt in iter(padneg): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |