tests: refactor vpp_object.py 78/18578/3
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Thu, 28 Mar 2019 16:53:44 +0000 (09:53 -0700)
committerNeale Ranns <nranns@cisco.com>
Fri, 29 Mar 2019 16:02:27 +0000 (16:02 +0000)
commit3593a9174a8e9faddb8d4eb451d1b4632c1e0df1
tree69e94c2f92662b09cef02a14167d1145a9ed575b
parent60f3e6547aa75a31fad1f78bea11c950cc30d63c
tests: refactor vpp_object.py

Move __str__ to super for all subclasses of VppObject
Implement __repr__ in VppObject
Implement __hash__ and __eq__

Change-Id: Ibd4ea37b84b17f499ab86630fb5b9ed9c8b4b1c2
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
18 files changed:
test/bfd.py
test/test_abf.py
test/test_gbp.py
test/test_pipe.py
test/vpp_bier.py
test/vpp_gre_interface.py
test/vpp_igmp.py
test/vpp_ip_route.py
test/vpp_ipsec.py
test/vpp_ipsec_tun_interface.py
test/vpp_l2.py
test/vpp_memif.py
test/vpp_mpls_tunnel_interface.py
test/vpp_neighbor.py
test/vpp_object.py
test/vpp_srv6.py
test/vpp_udp_encap.py
test/vpp_vxlan_gbp_tunnel.py