Esempio n. 1
0
 def test_time_uuid_order(self):
     old = time_uuid.oid()
     for i in range(100):
         t = time_uuid.oid()
         print(t)
         assert t > old
         old = t
Esempio n. 2
0
 def test_time_uuid_order(self):
     old = time_uuid.oid()
     for i in range(100):
         t = time_uuid.oid()
         print(t)
         assert t > old
         old = t
Esempio n. 3
0
 def __init__(self, **kwargs):
     self._id = kwargs.get('id', time_uuid.oid())
     self._title = kwargs.get('title', '')
     self._message = kwargs.get('message', '')
     self._kind = kwargs.get('kind', self.NOTIFY)
     self._timestamp = kwargs.get('timestamp', datetime.now().isoformat())
     self._priority = kwargs.get('priority', self.INFO)
     self._app_icon = None
     self._app_name = APP_NAME
     self._reply_to = None
Esempio n. 4
0
 def __init__(self, **kwargs):
     self._id = kwargs.get('id', time_uuid.oid())
     self._title = kwargs.get('title', '')
     self._message = kwargs.get('message', '')
     self._kind = kwargs.get('kind', self.NOTIFY)
     self._timestamp = kwargs.get('timestamp', datetime.now().isoformat())
     self._priority = kwargs.get('priority', self.INFO)
     self._app_icon = None
     self._app_name = APP_NAME
     self._reply_to = None
Esempio n. 5
0
 def _gen_job_id(self):
     return time_uuid.oid()
Esempio n. 6
0
 def test_uuids_should_be_in_alaphabetical_order(self):
     old = time_uuid.oid()
     for i in range(100):
         t = time_uuid.oid()
         assert t > old
         old = t
Esempio n. 7
0
 def _gen_job_id(self):
     return time_uuid.oid()
Esempio n. 8
0
 def test_uuids_should_be_in_alaphabetical_order(self):
     old = time_uuid.oid()
     for i in range(100):
         t = time_uuid.oid()
         assert t > old
         old = t