def METHOD_NAME(self, project, repo):
    """Validates that the given prj/repo is fully published and all builds
    have succeeded."""
    url = makeurl(self.apiurl, ['build', project, '_result'],
                  {'view': 'summary', 'repository': repo})
    root = ET.parse(http_GET(url)).getroot()
    for result in root.findall('result'):
        if result.get('dirty', 'false') != 'false':
            return False
        if result.get('code') != 'published' or result.get('state') != 'published':
            return False
    for statuscount in root.findall('statuscount'):
        if statuscount.get('code') not in ('succeeded', 'disabled', 'excluded'):
            return False
    return True