def _assert_bindings_match(self, npb, npb_obj):
self.assertEqual(npb.port_id, npb_obj.port)<EOL>self.assertEqual(npb.vlan_id, npb_obj.vlan)<EOL>self.assertEqual(npb.switch_ip, npb_obj.switch)<EOL>self.assertEqual(npb.instance_id, npb_obj.instance)<EOL>
Asserts that a port binding matches a port binding test obj.