def METHOD_NAME(self, closed=False):
    """Loop through attendee cases associated with mobile workers and asserts if the cases are open
    or closed
    """
    assert_method = self.assertTrue if closed else self.assertFalse
    for model in AttendeeModel.objects.by_domain(self.domain, include_closed=True):
        assert_method(model.case.closed)