Lines Matching refs:st_mode
63 st_mode = os.lstat(fname).st_mode
65 st_mode = os.stat(fname).st_mode
66 return st_mode
90 st_mode = self.get_mode()
91 self.assertS_IS("REG", st_mode)
92 self.assertEqual(stat.S_IMODE(st_mode),
96 st_mode = self.get_mode()
97 self.assertS_IS("REG", st_mode)
98 self.assertEqual(stat.S_IMODE(st_mode),
102 st_mode = self.get_mode()
103 self.assertS_IS("REG", st_mode)
104 self.assertEqual(stat.S_IMODE(st_mode),
108 st_mode = self.get_mode()
109 self.assertS_IS("REG", st_mode)
110 self.assertEqual(stat.S_IMODE(st_mode), 0o444)
113 st_mode = self.get_mode()
114 self.assertS_IS("REG", st_mode)
115 self.assertEqual(stat.S_IFMT(st_mode),
121 st_mode = self.get_mode()
122 self.assertS_IS("DIR", st_mode)
131 st_mode = self.get_mode()
132 self.assertS_IS("LNK", st_mode)
137 st_mode = self.get_mode()
138 self.assertS_IS("FIFO", st_mode)
143 st_mode = self.get_mode(os.devnull, lstat=False)
144 self.assertS_IS("CHR", st_mode)
148 st_mode = self.get_mode(blockdev, lstat=False)
149 self.assertS_IS("BLK", st_mode)