Skip to content

Commit

Permalink
added test, bump version for release
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : svn%3A882ca7fe-3cf8-0310-95c5-f9aabef819dd/pyoai/trunk%4037930
  • Loading branch information
jasper@882ca7fe-3cf8-0310-95c5-f9aabef819dd committed Nov 16, 2009
1 parent bde49c5 commit 1e1724f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='pyoai',
version='2.5dev',
version='2.4.1',
author='Infrae',
author_email='[email protected]',
url='http://www.infrae.com/download/oaipmh',
Expand Down
11 changes: 10 additions & 1 deletion src/oaipmh/tests/test_datestamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@ def test_strict_datestamp_to_datetime(self):
datestamp_to_datetime('foo')
except DatestampError, e:
self.assertEquals('foo', e.datestamp)


def test_strict_datestamp_to_datetime_inclusive(self):
# passing inclusive=True to datestamp_to_datetime
# should default the time to 23:59:59 instead of 00:00:00
# when only a date is supplied

self.assertEquals(datetime(2009, 11, 16, 23, 59, 59),
datestamp_to_datetime('2009-11-16',
inclusive=True))

def test_tolerant_datestamp_to_datetime(self):
f = tolerant_datestamp_to_datetime
self.assertEquals(
Expand Down

0 comments on commit 1e1724f

Please sign in to comment.