Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
test fix - two digit month and day
Browse files Browse the repository at this point in the history
  • Loading branch information
zalun committed Jan 3, 2011
1 parent a24f282 commit ee37574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/jetpack/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_attachment_path(self):
att = revision.attachments.all()[0]
bits = att.path.split(os.path.sep)
now = datetime.now()
eq_(bits[-4:-1], [str(now.year), str(now.month), str(now.day)])
eq_(bits[-4:-1], now.strftime('%Y-%m-%d').split('-'))

def test_attachment_add_read(self):
res = self.post(self.add_url, 'foo', 'some.txt')
Expand Down

0 comments on commit ee37574

Please sign in to comment.