def test_format_day(self): locale = tornado.locale.get('en_US') date = datetime.datetime(2013, 4, 28, 18, 35) self.assertEqual(locale.format_day(date=date, dow=True), 'Sunday, April 28') self.assertEqual(locale.format_day(date=date, dow=False), 'April 28')
def test_format_day(self): locale = tornado.locale.get('en_US') date = datetime.datetime(2013, 4, 28, 18, 35) self.assertEqual(locale.format_day(date=date, dow=True), 'Sunday, April 28') self.assertEqual(locale.format_day(date=date, dow=False), 'April 28')