Beispiel #1
0
def test_description_with_credentials(monkeypatch):
    assert IPMISource._make_description(
        None, {"username": "******"}) == "Management board - IPMI (User: Bobby)"
Beispiel #2
0
def test_description_with_ipaddress_and_credentials(monkeypatch):
    assert IPMISource._make_description(
        "1.2.3.4",
        {"username": "******"},
    ) == "Management board - IPMI (Address: 1.2.3.4, User: Bobby)"
Beispiel #3
0
def test_description_with_ipaddress(monkeypatch):
    assert IPMISource._make_description(
        "1.2.3.4",
        {},
    ) == "Management board - IPMI (Address: 1.2.3.4)"