Esempio n. 1
0
 def test_utime(self):
     open('temp_file_does_not_exist.txt', 'w').close()
     import nt
     x = nt.stat('.')
     nt.utime('temp_file_does_not_exist.txt', (x[7], x[8]))
     y = nt.stat('temp_file_does_not_exist.txt')
     self.assertEqual(x[7], y[7])
     self.assertEqual(x[8], y[8])
     nt.unlink('temp_file_does_not_exist.txt')
Esempio n. 2
0
def test_utime():
    f = file('temp_file_does_not_exist.txt', 'w')
    f.close()
    import nt
    x = nt.stat('.')
    nt.utime('temp_file_does_not_exist.txt', (x[7], x[8]))
    y = nt.stat('temp_file_does_not_exist.txt')
    AreEqual(x[7], y[7])
    AreEqual(x[8], y[8])
    nt.unlink('temp_file_does_not_exist.txt')
Esempio n. 3
0
def test_utime():
    f = file('temp_file_does_not_exist.txt', 'w')
    f.close()
    import nt
    x = nt.stat('.')
    nt.utime('temp_file_does_not_exist.txt', (x[7], x[8]))
    y = nt.stat('temp_file_does_not_exist.txt')
    AreEqual(x[7], y[7])
    AreEqual(x[8], y[8])
    nt.unlink('temp_file_does_not_exist.txt')
Esempio n. 4
0
def test_utime():
    f = file("temp_file_does_not_exist.txt", "w")
    f.close()
    import nt

    x = nt.stat(".")
    nt.utime("temp_file_does_not_exist.txt", (x[7], x[8]))
    y = nt.stat("temp_file_does_not_exist.txt")
    AreEqual(x[7], y[7])
    AreEqual(x[8], y[8])
    nt.unlink("temp_file_does_not_exist.txt")