def METHOD_NAME():
    for vector in PERMISSIONS_TEST_VECTORS:
        (line, with_group,
         permissions_owner, permissions_group, permissions_other, owner, group, path,
         owned_by_root_user, owned_by_root_user_and_group,
         only_root_can_read, only_root_can_write) = vector
        p = FilePermissions(line)
        assert p.perms_owner == permissions_owner
        assert p.perms_group == permissions_group
        assert p.perms_other == permissions_other
        assert p.owner == owner
        assert p.group == group
        assert p.owned_by('root', also_check_group=False) == owned_by_root_user
        assert p.owned_by('root', also_check_group=True) == owned_by_root_user_and_group
        assert p.only_root_can_read(root_group_can_read=with_group) == only_root_can_read
        assert p.only_root_can_write(root_group_can_write=with_group) == only_root_can_write
        assert p.all_zero() == all((p.perms_owner == '---', p.perms_group == '---',
                                    p.perms_other == '---'))
        assert p.owner_can_read() == ('r' in p.perms_owner)
        assert p.owner_can_write() == ('w' in p.perms_owner)
        assert p.owner_can_only_read() == ('r--' == p.perms_owner)
        assert p.group_can_read() == ('r' in p.perms_group)
        assert p.group_can_write() == ('w' in p.perms_group)
        assert p.group_can_only_read() == ('r--' == p.perms_group)
        assert p.others_can_read() == ('r' in p.perms_other)
        assert p.others_can_write() == ('w' in p.perms_other)
        assert p.others_can_only_read() == ('r--' == p.perms_other)