Exemplo n.º 1
0
def _safe_unmarshal_time(when):
    if not when:
        return None
    return timeutils.unmarshall_time(when)
Exemplo n.º 2
0
def _safe_unmarshal_time(when):
    if not when:
        return None
    return timeutils.unmarshall_time(when)
Exemplo n.º 3
0
 def test_marshall_time(self):
     now = timeutils.utcnow()
     binary = timeutils.marshall_now(now)
     backagain = timeutils.unmarshall_time(binary)
     self.assertEqual(now, backagain)
Exemplo n.º 4
0
 def test_marshall_time(self):
     now = timeutils.utcnow()
     binary = timeutils.marshall_now(now)
     backagain = timeutils.unmarshall_time(binary)
     self.assertEqual(now, backagain)