Improve assert helper in test_strftime test

This commit is contained in:
Alex Chan 2016-10-16 12:28:54 +01:00
commit b084a22dc8
No known key found for this signature in database
GPG key ID: F690AAE767877632

View file

@ -414,7 +414,7 @@ class TestUtils(LoggedTestCase):
self.assertEqual(utils.strftime(d, '%d %B %Y'), '29 août 2012')
# depending on OS, the first letter is m or M
self.assertTrue(utils.strftime(d, '%A') in ('mercredi', 'Mercredi'))
self.assertIn(utils.strftime(d, '%A'), ('mercredi', 'Mercredi'))
# with text
self.assertEqual(