def METHOD_NAME(self):
    """Test the `remove_ip_addresses` helper method on `VMInterface`"""
    vm_interface = VMInterface.objects.create(
        name="Int1", virtual_machine=self.virtualmachine, status=self.int_status
    )
    ips = list(IPAddress.objects.all()[:10])
    # baseline (no vm_interface to ip address relationships exists)
    self.assertFalse(IPAddressToInterface.objects.filter(vm_interface=vm_interface).exists())
    vm_interface.add_ip_addresses(ips)
    self.assertEqual(IPAddressToInterface.objects.filter(vm_interface=vm_interface).count(), 10)
    # remove single instance
    count = vm_interface.remove_ip_addresses(ips[-1])
    self.assertEqual(count, 1)
    self.assertEqual(IPAddressToInterface.objects.filter(vm_interface=vm_interface).count(), 9)
    # remove multiple instances
    count = vm_interface.remove_ip_addresses(ips[:5])
    self.assertEqual(count, 5)
    self.assertEqual(IPAddressToInterface.objects.filter(vm_interface=vm_interface).count(), 4)
    count = vm_interface.remove_ip_addresses(ips)
    self.assertEqual(count, 4)
    self.assertEqual(IPAddressToInterface.objects.filter(vm_interface=vm_interface).count(), 0)
    # Test the pre_delete signal for IPAddressToInterface instances
    vm_interface.add_ip_addresses(ips)
    self.virtualmachine.primary_ip4 = vm_interface.ip_addresses.all().filter(host__family=4).first()
    self.virtualmachine.primary_ip6 = vm_interface.ip_addresses.all().filter(host__family=6).first()
    self.virtualmachine.save()
    vm_interface.remove_ip_addresses(self.virtualmachine.primary_ip4)
    self.virtualmachine.refresh_from_db()
    self.assertEqual(self.virtualmachine.primary_ip4, None)
    vm_interface.remove_ip_addresses(self.virtualmachine.primary_ip6)
    self.virtualmachine.refresh_from_db()
    self.assertEqual(self.virtualmachine.primary_ip6, None)