[Bug 890675] [NEW] test_moderation fails on approved_at date comparison

blacktav 890675 at bugs.launchpad.net
Tue Nov 15 14:12:54 CET 2011


Public bug reported:

Tests fail with

Failure in test test_accepted_message_gets_posted (mailman.app.tests.test_moderation.TestModeration)
Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File "/home/devel/mailman/src/mailman/app/tests/test_moderation.py", line 83, in test_accepted_message_gets_posted
    'Mon, 01 Aug 2005 07:49:23 -')
  File "/usr/lib64/python2.7/unittest/case.py", line 494, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python2.7/unittest/case.py", line 487, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: 'Mon, 01 Aug 2005 07:49:23 +' != u'Mon, 01 Aug 2005 07:49:23 -'

which seems to include remnants of UTC offset in its comparison

perhaps it should be

mailman/src/mailman/app/tests/test_moderation.py: line 82

        self.assertEqual(message['x-mailman-approved-at'][:-5],
                         'Mon, 01 Aug 2005 07:49:23 ')

** Affects: mailman
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/890675

Title:
  test_moderation fails on approved_at date comparison

To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/890675/+subscriptions


More information about the Mailman-coders mailing list