#NEWLINE# @ property #NEWLINE# @ memoized #NEWLINE# def cases( self ) : #NEWLINE# #INDENT# _assert = soft_assert ( '@' . join ( [ 'droberts' , 'dimagi.com' ] ) ) #NEWLINE# _assert ( False , "I'm surprised GroupReferenceMixIn ever gets called!" ) #NEWLINE# case_ids = get_case_ids_in_domain_by_owner ( self . domain , owner_id__in = self . all_owner_ids , closed = False ) #NEWLINE# return [ CommCareCase . wrap ( self ) for doc in iter_docs ( CommCareCase . get_db ( ) , case_ids ) ]