Ejemplo n.º 1
0
 def test_generate_timestamp(self):
     t = python.generate_timestamp()
     self.assertIsInstance(t, int)
Ejemplo n.º 2
0
 def wrapped(instance, filename):
     _, ext = os.path.splitext(filename)
     time_filename = "%s%s" % (generate_timestamp(), ext)
     return os.path.join(basedir, time_filename)