Lines Matching refs:modestr
96 modestr = self.statmod.filemode(st_mode)
97 return st_mode, modestr
121 st_mode, modestr = self.get_mode()
122 self.assertEqual(modestr, '-rwx------')
128 st_mode, modestr = self.get_mode()
129 self.assertEqual(modestr, '----rwx---')
135 st_mode, modestr = self.get_mode()
136 self.assertEqual(modestr, '-------rwx')
142 st_mode, modestr = self.get_mode()
144 self.assertEqual(modestr, '-r--r--r--')
148 st_mode, modestr = self.get_mode()
149 self.assertEqual(modestr[:3], '-rw')
157 st_mode, modestr = self.get_mode()
160 self.assertEqual(modestr, 'drwx------')
162 self.assertEqual(modestr[0], 'd')
171 st_mode, modestr = self.get_mode()
172 self.assertEqual(modestr[0], 'l')
186 st_mode, modestr = self.get_mode(fifo_path)
187 self.assertEqual(modestr, 'prwx------')
193 st_mode, modestr = self.get_mode(os.devnull, lstat=False)
194 self.assertEqual(modestr[0], 'c')
199 st_mode, modestr = self.get_mode(blockdev, lstat=False)
200 self.assertEqual(modestr[0], 'b')
208 st_mode, modestr = self.get_mode()
209 self.assertEqual(modestr[0], 's')