def test_normalize(self): dt1 = delorean.Delorean() dt2 = delorean.Delorean(timezone="US/Eastern") dt1.truncate('minute') dt2.truncate('minute') dt_normalized = delorean.normalize(dt1.datetime, "US/Eastern") self.assertEqual(dt2.datetime, dt_normalized)