Exemplo n.º 1
0
def test_peers():
    with patch(
            "salt.utils.napalm.get_device",
            MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_ntp.peers()
        assert "172.17.17.1" in ret["out"]
Exemplo n.º 2
0
 def test_peers(self):
     ret = napalm_ntp.peers()
     assert '172.17.17.1' in ret['out']
Exemplo n.º 3
0
 def test_peers(self):
     ret = napalm_ntp.peers()
     assert "172.17.17.1" in ret["out"]