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