def test_get_html_representation_when_hostname_is_not_isolated():
    """
        When hostname is not isolated, get_html_representation should return html representation accordingly.
    """

    html_representation = ChronicleIsolatedHostnameWidgetScript.get_html_representation(
        DUMMY_HOSTNAME, 'No')
    assert "<div style='color:green; text-align:center;'><h1>dummyhost.com<br/>Hostname Not Isolated</h1>" \
           "</div>" == html_representation
def test_get_html_representation_when_no_hostname_is_attached():
    """
        When no hostname is attached, get_html_representation should return html representation accordingly.
    """

    html_representation = ChronicleIsolatedHostnameWidgetScript.get_html_representation(
        "", 'No')
    assert "<div style='color:grey; text-align:center;'><h1>No Hostname associated with the ChronicleAsset</h1></div>" \
           == html_representation