Ejemplo n.º 1
0
 def test_tstamp2(self):
     timestamp = int(time.time())
     d = shelve.open("test")
     d["13142345"] = timestamp
     self.assertEqual(get_tstamp("13142345", 1, "test"), str(timestamp))
Ejemplo n.º 2
0
 def test_tstamp(self):
     self.assertEqual(get_tstamp("13142345", 0, "test"), -2180131200)