def test_rollback(): with patch( "salt.utils.napalm.get_device", MagicMock(return_value=napalm_test_support.MockNapalmDevice()), ): ret = napalm_network.rollback() assert ret["out"] == napalm_test_support.TEST_RUNNING_CONFIG.copy()
def test_rollback(self): ret = napalm_network.rollback() assert ret['out'] == TEST_RUNNING_CONFIG
def test_rollback(self): ret = napalm_network.rollback() assert ret["out"] == napalm_test_support.TEST_RUNNING_CONFIG.copy()