Exemplo n.º 1
0
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
Exemplo n.º 2
0
 def test_connected_pass(self):
     ret = napalm_network.connected()
     assert ret['out'] is True