def test_community_no_charges_no_invoice(self):
        domain = generator.arbitrary_domain()
        tasks.generate_invoices()
        self.assertRaises(ObjectDoesNotExist,
                          lambda: Invoice.objects.get(subscription__subscriber__domain=domain.name))
        domain.delete()
No invoices should be generated for domains that are not on a subscription and do not
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/accounting/tests/test_invoicing.py/TestInvoice.test_community_no_charges_no_invoice