def test_splitted_utc_datetime_to_timestamp_with_none_dt(self): dt = None ms = 12345 timestamp = Model._splitted_utc_datetime_to_timestamp(dt, ms) self.assertEquals(None, timestamp)
def test_splitted_utc_datetime_to_timestamp_with_none_dt(self): dt = None ms = 12345 timestamp = Model._splitted_utc_datetime_to_timestamp(dt, ms) self.assertEquals(None, timestamp)
def test_splitted_utc_datetime_to_timestamp(self): dt = datetime.datetime(2010, 06, 14, 15, 45, 00) ms = 12345 timestamp = Model._splitted_utc_datetime_to_timestamp(dt, ms) self.assertEquals(1276530300.0123451, timestamp)
def test_splitted_utc_datetime_to_timestamp(self): dt = datetime.datetime(2010, 06, 14, 15, 45, 00) ms = 12345 timestamp = Model._splitted_utc_datetime_to_timestamp(dt, ms) self.assertEquals(1276530300.0123451, timestamp)