Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/pyblosxom/tests/unit/test_entries.py b/pyblosxom/tests/unit/test_entries.py
- index b676666..941b81a 100644
- --- a/pyblosxom/tests/unit/test_entries.py
- +++ b/pyblosxom/tests/unit/test_entries.py
- @@ -10,7 +10,8 @@ from Pyblosxom.tools import STANDARD_FILTERS
- from Pyblosxom.pyblosxom import Request
- from Pyblosxom.entries.base import EntryBase, generate_entry
- -TIME1 = (2008, 7, 21, 12, 51, 47, 0, 203, 1)
- +# TIME1 = (2008, 7, 21, 12, 51, 47, 0, 203, 1)
- +TIME1 = time.strptime("7/21/2008 11:51:47", "%m/%d/%Y %H:%M:%S")
- class TestEntryBase:
- def test_data(self):
- @@ -44,17 +45,17 @@ class TestEntryBase:
- e = EntryBase(req_())
- e.setTime(TIME1)
- for mem in (("timetuple", TIME1),
- - ("mtime", 1216659107.0),
- - ("ti", "12:51"),
- + ("mtime", 1216655507.0),
- + ("ti", "11:51"),
- ("mo", "Jul"),
- ("mo_num", "07"),
- ("da", "21"),
- ("dw", "Monday"),
- ("yr", "2008"),
- - ("fulltime", "20080721125147"),
- + ("fulltime", "20080721115147"),
- ("date", "Mon, 21 Jul 2008"),
- - ("w3cdate", "2008-07-21T16:51:47Z"),
- - ("rfc822date", "Mon, 21 Jul 2008 16:51 GMT")):
- + ("w3cdate", "2008-07-21T15:51:47Z"),
- + ("rfc822date", "Mon, 21 Jul 2008 15:51 GMT")):
- yield eq_, e[mem[0]], mem[1], \
- "%s != %s (note: this is a locale dependent test)" % (mem[0], mem[1])
- @@ -119,7 +120,7 @@ class TestEntryBase:
- yield eq_, e["foo"], "bar"
- yield eq_, e["body"], "entry body"
- - yield eq_, e["rfc822date"], "Mon, 21 Jul 2008 16:51 GMT"
- + yield eq_, e["rfc822date"], "Mon, 21 Jul 2008 15:51 GMT"
- e = generate_entry(req_(), {"foo": "bar"}, "entry body")
Add Comment
Please, Sign In to add comment