def data_complete(datadir, sitedir, get_container_name):
if any(not path.isdir(sitedir + x)<EOL>for x in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')):<EOL><INDENT>return False<EOL><DEDENT>if docker.is_boot2docker():<EOL><INDENT>return all(docker.inspect_container(get_container_name(x))<EOL>for x in ('<STR_LIT>', '<STR_LIT>'))<EOL><DEDENT>return path.isdir(datadir + '<STR_LIT>') and path.isdir(sitedir + '<STR_LIT>')<EOL>
Return True if the directories and containers we're expecting
are present in datadir, sitedir and containers