FAIL: Get Multiple Bit Tests
FAIL: Get Single Bit Tests
FAIL: crackPalmDate with baseline date passed in
FAIL: packPalmDate with baseline date passed in
$ uname -a
Darwin vecsigma.local 8.7.0 Darwin Kernel Version
8.7.0: Fri May 26
15:20:53 PDT 2006; root:xnu-792.6.76.obj~1/RELEASE_PPC
Power Macintosh
powerpc
$ which python
/usr/bin/python
$ python -V
Python 2.3.5
Logged In: YES
user_id=1199601
I just repeated the tests using python 2.4.3 and 4Suite installed through
DarwinPorts.
$ python alltests.py
..............F.F..........
===============================================
=======================
FAIL: crackPalmDate with baseline date passed in
-----------------------------------------------------------------
-----
Traceback (most recent call last):
File "/Volumes/homepb/Users/Shared/code/pythonpalmdb/UnitTests/
UtilTest.py", line 139, in testCrackPalmDateWithBaselineDate
self.assertEqual(crackPalmDate(PILOT_TIME_DELTA),datetime.datetime
(1969, 12, 31, 19, 0))
AssertionError: datetime.datetime(1969, 12, 31, 18, 0) != datetime.datetime
(1969, 12, 31, 19, 0)
===============================================
FAIL: packPalmDate with baseline date passed in
-----------------------------------------------------------------
-----
Traceback (most recent call last):
File "/Volumes/homepb/Users/Shared/code/pythonpalmdb/UnitTests/
UtilTest.py", line 145, in testPackPalmDateWithBaselineDate
self.assertEqual(packPalmDate(datetime.datetime(1969, 12, 31, 19,
0)),PILOT_TIME_DELTA)
AssertionError: 2082848400 != 2082844800L
-----------------------------------------------------------------
-----
Ran 27 tests in 0.164s
FAILED (failures=2)
Logged In: YES
user_id=1199601
It looks like the zero date value has a 1-minute difference:
Python 2.4.3 (#1, Jul 20 2006, 15:38:34)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime;
>>> datetime.datetime.fromtimestamp(0);
datetime.datetime(1969, 12, 31, 18, 0)