def test_runtime(self):
        """Runtime"""
        k = knem()
        r = k.runtime()
        self.assertEqual(r,
r'''# KNEM
COPY --from=0 /usr/local/knem /usr/local/knem
ENV CPATH=/usr/local/knem/include:$CPATH''')
    def test_defaults_centos(self):
        """Default knem building block"""
        k = knem()
        self.assertEqual(str(k),
r'''# KNEM version 1.1.3
RUN yum install -y \
        ca-certificates \
        git && \
    rm -rf /var/cache/yum/*
RUN mkdir -p /var/tmp && cd /var/tmp && git clone --depth=1 --branch knem-1.1.3 https://gforge.inria.fr/git/knem/knem.git knem && cd - && \
    mkdir -p /usr/local/knem/include && \
    cp /var/tmp/knem/common/*.h /usr/local/knem/include && \
    rm -rf /var/tmp/knem
ENV CPATH=/usr/local/knem/include:$CPATH''')
    def test_defaults_ubuntu(self):
        """Default knem building block"""
        k = knem()
        self.assertEqual(str(k),
r'''# KNEM version 1.1.3
RUN apt-get update -y && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        ca-certificates \
        git && \
    rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/tmp && cd /var/tmp && git clone --depth=1 --branch knem-1.1.3 https://gforge.inria.fr/git/knem/knem.git knem && cd - && \
    mkdir -p /usr/local/knem/include && \
    cp /var/tmp/knem/common/*.h /usr/local/knem/include && \
    rm -rf /var/tmp/knem
ENV CPATH=/usr/local/knem/include:$CPATH''')