Example #1
0
 def testTouchTimeStamp(self):
     "Verify that the time stamp file gets touched"
     import time
     import os
     ct = time.time()
     # heh, lame but only have one sec resolution on file stamps
     time.sleep(1)
     packages.touch_time_stamp()
     timestamp = os.stat(packages.LAST_UPDATE_FILE)[8]
     if ct >= timestamp:
         self.fail("Timestamp not updated")
 def testTouchTimeStamp(self):
     "Verify that the time stamp file gets touched"
     import time
     import os
     ct = time.time()
     # heh, lame but only have one sec resolution on file stamps
     time.sleep(1)
     packages.touch_time_stamp()
     timestamp = os.stat(packages.LAST_UPDATE_FILE)[8]
     if ct >= timestamp:
         self.fail("Timestamp not updated")
Example #3
0
    def testNoTimeStampFile(self):
        "Verify that touch_time_stamp handles no timestamp file existing"
        import os
        os.unlink(packages.LAST_UPDATE_FILE)
        res = packages.touch_time_stamp()

        if not os.access(packages.LAST_UPDATE_FILE, os.R_OK):
            self.fail("No timestamp file created")
    def testNoTimeStampFile(self):
        "Verify that touch_time_stamp handles no timestamp file existing"
        import os
        os.unlink(packages.LAST_UPDATE_FILE)
        res = packages.touch_time_stamp()

        if not os.access(packages.LAST_UPDATE_FILE, os.R_OK):
            self.fail("No timestamp file created")