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