def test_simple_date(self): kioto_date = datetime.datetime( KIOTO_DATETIME.year, KIOTO_DATETIME.month, KIOTO_DATETIME.day ) kioto_date_str = '{0.year}-{0.month}-{0.day}'.format(kioto_date) self.assertEqual( timestamp_ms.from_str(kioto_date_str), timestamp_ms.from_datetime(kioto_date) )
def test_twitter(self): self.assertEqual( timestamp_ms.from_datetime(KIOTO_DATETIME), KIOTO_TIMESTAMP_MS )