def test_translate_marcefile(): """Test the RecetteÀMarcel --> Dockerfile translation.""" marcelfile_content = u""" DEPUIS debian:latest CRÉATEUR Thomas Maurice <*****@*****.**> LANCE apt-get update && apt-get upgrade -y LANCE useradd manuel UTILISATEUR manuel ORDRE echo "La baguette hon hon hon" """ expected = u""" FROM debian:latest MAINTAINER Thomas Maurice <*****@*****.**> RUN apt-get update && apt-get upgrade -y RUN useradd manuel USER manuel CMD echo "La baguette hon hon hon" """ assert translate_marcelfile(marcelfile_content) == expected
def test_translate_marcefile(): """Test the RecetteÀMarcel --> Dockerfile translation.""" marcelfile_content = u""" DEPUIS debian:latest CRÉATEUR Thomas Maurice <*****@*****.**> LANCE apt-get update && apt-get upgrade -y LANCE useradd manuel BTP echo "Coucou" UTILISATEUR manuel APÉRITIF SIGSTOP LIEU DE TRAVAIL /app ORDRE echo "La baguette hon hon hon" """ expected = u""" FROM debian:latest MAINTAINER Thomas Maurice <*****@*****.**> RUN apt-get update && apt-get upgrade -y RUN useradd manuel ONBUILD echo "Coucou" USER manuel STOPSIGNAL SIGSTOP WORKDIR /app CMD echo "La baguette hon hon hon" """ assert translate_marcelfile(marcelfile_content) == expected