D | network_ShillInitScripts.py | 170 def assure(self, must_be_true, assertion_name): member in network_ShillInitScripts 189 self.assure(pwd.getpwuid(os.stat(path).st_uid)[0] == owner, 200 self.assure(grp.getgrgid(os.stat(path).st_gid)[0] == group, 211 self.assure(os.path.exists(path), '%s exists' % path_friendly_name) 222 self.assure(stat.S_ISDIR(os.lstat(path).st_mode), 234 self.assure(stat.S_ISLNK(os.lstat(path).st_mode), 247 self.assure(os.readlink(path) == pointee, 262 self.assure(False, '%s: method call count does not match' % 265 self.assure(actual.method == expected[0], 268 self.assure(actual.argument == expected[1], [all …]
|