def assert_mode_755(mode):
 assert ((mode & stat.S_IROTH) and (mode & stat.S_IRGRP) and (mode & stat.S_IXOTH) and (mode & stat.S_IXGRP))
 assert ((mode & stat.S_IWUSR) and (mode & stat.S_IRUSR) and (mode & stat.S_IXUSR))

def assert_mode_755 ( mode ) : assert ( ( mode & stat . S_IROTH ) and ( mode & stat . S_IRGRP ) and ( mode & stat . S_IXOTH ) and ( mode & stat . S_IXGRP ) ) assert ( ( mode & stat . S_IWUSR ) and ( mode & stat . S_IRUSR ) and ( mode & stat . S_IXUSR ) )
verify given mode is 755 .