87
88
if not self.can_sys_preserve_mode():
88
89
raise TestSkipped("This test cannot be run on your platform")
89
90
f = atomicfile.AtomicFile('test', mode='wb', new_mode=mode)
93
94
self.assertEqualMode(mode, stat.S_IMODE(st.st_mode))
95
96
def test_mode_0666(self):
98
99
def test_mode_0664(self):
107
108
def test_mode_0640(self):
110
111
def test_mode_0600(self):
113
114
def test_mode_0400(self):
115
116
# Make it read-write again so cleanup doesn't complain
119
120
# The default file permissions should be based on umask
120
121
umask = osutils.get_umask()
121
122
f = atomicfile.AtomicFile('test', mode='wb')