def setUp(self):
     start_time = datetime.utcnow()
     self.sf = SonyFlake(start_time)
     self.start_time = SonyFlake.to_sonyflake_time(start_time)
     self.machine_id = lower_16bit_private_ip()
 def _current_time():
     return SonyFlake.to_sonyflake_time(datetime.utcnow())
 def _current_time():
     return SonyFlake.to_sonyflake_time(datetime.now(timezone.utc))