コード例 #1
0
def test_description_with_credentials(monkeypatch):
    assert IPMISource._make_description(
        None, {"username": "******"}) == "Management board - IPMI (User: Bobby)"
コード例 #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)"
コード例 #3
0
def test_description_with_ipaddress(monkeypatch):
    assert IPMISource._make_description(
        "1.2.3.4",
        {},
    ) == "Management board - IPMI (Address: 1.2.3.4)"