Skip to content

Commit

Permalink
Make test pass regardless of local timezone.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkiro committed Jul 12, 2014
1 parent 198506f commit a2cc3cf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,16 @@ def test_info(self):
"""
response = email.message_from_string(response,
_class=pyzor.message.Response)
result = ("%s:%s\t(200, 'OK')\n"
server = "%s:%s" % self.server
result = ("%s\t(200, 'OK')\n"
"\tCount: 4\n"
"\tEntered: Fri May 16 09:29:46 2014\n"
"\tUpdated: Fri May 16 09:29:54 2014\n"
"\tEntered: %s\n"
"\tUpdated: %s\n"
"\tWL-Count: 0\n"
"\tWL-Entered: Thu Jan 1 02:00:00 1970\n"
"\tWL-Updated: Thu Jan 1 02:00:00 1970\n\n" % self.server)
"\tWL-Entered: %s\n"
"\tWL-Updated: %s\n\n" %
(server, time.ctime(1400221786), time.ctime(1400221794),
time.ctime(0), time.ctime(0)))
self.maxDiff = None
self.check_runner(pyzor.client.InfoClientRunner, response, [result])

Expand Down

0 comments on commit a2cc3cf

Please sign in to comment.