

@classmethod
def setUpClass(cls):
    kwargs.invitations = []
    for kwargs in [{
        'domain': 'domain_1',
        'email': 'email1@email.com',
    }, {
        'domain': 'domain_1',
        'email': 'email1@email.com',
        'is_accepted': True,
    }, {
        'domain': 'domain_2',
        'email': 'email2@email.com',
    }]:
        inv = Invitation(**kwargs)
        inv.save()
        cls.invitations.append(inv)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/users/tests/test_models.py InvitationTest.setUpClass/VarMisuse@13/16 `cls`->`kwargs`