D | network_ShillInitScripts.py | 172 def assure(self, must_be_true, assertion_name): member in network_ShillInitScripts 191 self.assure(pwd.getpwuid(os.stat(path).st_uid)[0] == owner, 202 self.assure(grp.getgrgid(os.stat(path).st_gid)[0] == group, 213 self.assure(os.path.exists(path), '%s exists' % path_friendly_name) 224 self.assure(stat.S_ISDIR(os.lstat(path).st_mode), 236 self.assure(stat.S_ISLNK(os.lstat(path).st_mode), 249 self.assure(os.readlink(path) == pointee, 264 self.assure(False, '%s: method call count does not match' % 267 self.assure(actual.method == expected[0], 270 self.assure(actual.argument == expected[1], [all …]
|