Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)