103
103
raise NotImplementedError
106
t = self.get_transport()
108
if not self.readonly:
109
t.put('mode644', 'test text\n', mode=0644)
110
check_mode(self, 'mode644', 0644)
112
t.put('mode666', 'test text\n', mode=0666)
113
check_mode(self, 'mode666', 0666)
115
t.put('mode600', 'test text\n', mode=0600)
116
check_mode(self, 'mode600', 0600)
118
# Yes, you can put a file such that it becomes readonly
119
t.put('mode400', 'test text\n', mode=0400)
120
check_mode(self, 'mode400', 0400)
122
t.put_multi([('mmode644', 'text\n')], mode=0644)
123
check_mode(self, 'mmode644', 0644)
125
# TODO: jam 20051215 test put_multi with a mode. I didn't bother because
126
# it seems most people don't like the _multi functions
129
105
def test_mkdir(self):
130
106
t = self.get_transport()