We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a95ff3 commit 6be504eCopy full SHA for 6be504e
tests/test_integration.py
@@ -658,6 +658,19 @@ def test_set_xpath_from_addressobject_with_dg_panorama_parents(self):
658
659
self.assertEqual(expected, ret_val)
660
661
+ def test_xpath_from_addressobject_with_pano_parent(self):
662
+ expected = "/config/shared/address/entry[@name='shared ao']"
663
+
664
+ ao = pandevice.objects.AddressObject('shared ao')
665
+ pano = pandevice.panorama.Panorama('pano')
666
+ pano.get_device_version = mock.Mock(return_value=(7, 0, 0))
667
668
+ pano.add(ao)
669
670
+ ret_val = ao.xpath()
671
672
+ self.assertEqual(expected, ret_val)
673
674
675
class TestVariousSubinterfaceXpaths(unittest.TestCase):
676
def test_l2_subinterface_with_firewall_parent(self):
0 commit comments