D | network_ShillInitScripts.py | 177 def assure(self, must_be_true, assertion_name): member in network_ShillInitScripts 196 self.assure(pwd.getpwuid(os.stat(path).st_uid)[0] == owner, 207 self.assure(grp.getgrgid(os.stat(path).st_gid)[0] == group, 218 self.assure(os.path.exists(path), '%s exists' % path_friendly_name) 229 self.assure(stat.S_ISDIR(os.lstat(path).st_mode), 241 self.assure(stat.S_ISLNK(os.lstat(path).st_mode), 254 self.assure(os.readlink(path) == pointee, 269 self.assure(False, '%s: method call count does not match' % 272 self.assure(actual.method == expected[0], 275 self.assure(actual.argument == expected[1], [all …]
|