def test_connected_pass(): with patch( "salt.utils.napalm.get_device", MagicMock(return_value=napalm_test_support.MockNapalmDevice()), ): ret = napalm_network.connected() assert ret["out"] is True
def test_connected_pass(self): ret = napalm_network.connected() assert ret['out'] is True