def test_add_repo_powertools_centos8(self):
        """Add repo and key and enable PowerTools"""
        y = yum(keys=['https://www.example.com/key.pub'],
                ospackages=['example'],
                repositories=['http://www.example.com/example.repo'],
                powertools=True)
        self.assertEqual(str(y),
r'''RUN rpm --import https://www.example.com/key.pub && \
    yum install -y dnf-utils && \
    yum-config-manager --add-repo http://www.example.com/example.repo && \
    yum-config-manager --set-enabled powertools && \
    yum install -y \
        example && \
    rm -rf /var/cache/yum/*''')
Add repo and key and enable PowerTools
test/test_yum.py