@staticmethod
    def is_html_response(response):
        assert 'text/html' in str(response.headers['Content-type'])
        return '<!DOCTYPE html>' in response.get_data(as_text=True)
Only work on Ubuntu
dataset/ETHPy150Open jeffknupp/sandman/tests/test_sandman.py/TestSandmanBase.is_html_response--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/upstart.py/__virtual__