def test__delete_arp_cache_for_internal_port(self):
    (ri, subnet_id) = self._setup_test_for_arp_entry_cache()
    ri._cache_arp_entry('0.0.0.0', '00:11:22:33:44:55', subnet_id, 'add')
    self.assertEqual(1, len(ri._pending_arp_set))
    ri._delete_arp_cache_for_internal_port(subnet_id)
    self.assertEqual(0, len(ri._pending_arp_set))
def test__delete_arp_cache_for_internal_port(self):
    (ri, subnet_id) = self._setup_test_for_arp_entry_cache()
    ri._cache_arp_entry('0.0.0.0', '00:11:22:33:44:55', subnet_id, 'add')
    self.assertEqual(1, len(ri._pending_arp_set))
    ri._delete_arp_cache_for_internal_port(subnet_id)
    self.assertEqual(0, len(ri._pending_arp_set))