Ejemplo n.º 1
0
def test_stats():
    with patch(
            "salt.utils.napalm.get_device",
            MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_ntp.stats()
        assert ret["out"][0]["reachability"] == 377
Ejemplo n.º 2
0
 def test_stats(self):
     ret = napalm_ntp.stats()
     assert ret['out'][0]['reachability'] == 377
Ejemplo n.º 3
0
 def test_stats(self):
     ret = napalm_ntp.stats()
     assert ret["out"][0]["reachability"] == 377