Пример #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
Пример #2
0
 def test_stats(self):
     ret = napalm_ntp.stats()
     assert ret['out'][0]['reachability'] == 377
Пример #3
0
 def test_stats(self):
     ret = napalm_ntp.stats()
     assert ret["out"][0]["reachability"] == 377