comparison test/test_dates.py @ 1361:b94cc62090be

reminder comments for where we need new tests
author Richard Jones <richard@users.sourceforge.net>
date Sun, 12 Jan 2003 00:43:43 +0000
parents 46a1951fdb14
children 0c3546479b52
comparison
equal deleted inserted replaced
1360:aa7e4e8b14be 1361:b94cc62090be
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: test_dates.py,v 1.15 2002-12-09 02:43:21 richard Exp $ 18 # $Id: test_dates.py,v 1.16 2003-01-12 00:43:43 richard Exp $
19 19
20 import unittest, time 20 import unittest, time
21 21
22 from roundup.date import Date, Interval 22 from roundup.date import Date, Interval
23 23
160 ae(str(Interval('1y') + Interval('1m')), '+ 1y 1m') 160 ae(str(Interval('1y') + Interval('1m')), '+ 1y 1m')
161 ae(str(Interval('1y') + Interval('2:40')), '+ 1y 2:40') 161 ae(str(Interval('1y') + Interval('2:40')), '+ 1y 2:40')
162 ae(str(Interval('1y') + Interval('- 1y')), '+') 162 ae(str(Interval('1y') + Interval('- 1y')), '+')
163 ae(str(Interval('1y') + Interval('- 1m')), '+ 1y -1m') 163 ae(str(Interval('1y') + Interval('- 1m')), '+ 1y -1m')
164 164
165 # TODO test add, subtraction, ?division?
166
165 def suite(): 167 def suite():
166 return unittest.makeSuite(DateTestCase, 'test') 168 return unittest.makeSuite(DateTestCase, 'test')
167 169
168 170
169 # vim: set filetype=python ts=4 sw=4 et si 171 # vim: set filetype=python ts=4 sw=4 et si

Roundup Issue Tracker: http://roundup-tracker.org/