def assert_mode_644(mode):
 assert ((mode & stat.S_IROTH) and (mode & stat.S_IRGRP))
 assert ((mode & stat.S_IWUSR) and (mode & stat.S_IRUSR) and (not (mode & stat.S_IXUSR)))

def assert_mode_644 ( mode ) : assert ( ( mode & stat . S_IROTH ) and ( mode & stat . S_IRGRP ) ) assert ( ( mode & stat . S_IWUSR ) and ( mode & stat . S_IRUSR ) and ( not ( mode & stat . S_IXUSR ) ) )
verify given mode is 644 .