#NEWLINE# def test_dependent_cases_on_phone( self ) : #NEWLINE# #INDENT# sync_log = SyncLog ( cases_on_phone = [ CaseState ( case_id = 'bran' , indices = [ CommCareCaseIndex ( identifier = 'legs' , referenced_id = 'hodor' ) ] ) ] , dependent_cases_on_phone = [ CaseState ( case_id = 'hodor' ) ] ) #NEWLINE# migrated = SimplifiedSyncLog . from_other_format ( sync_log ) #NEWLINE# self . assertTrue ( ( 'bran' in migrated . case_ids_on_phone ) ) #NEWLINE# self . assertTrue ( ( 'hodor' in migrated . case_ids_on_phone ) ) #NEWLINE# self . assertTrue ( ( 'hodor' in migrated . dependent_case_ids_on_phone ) )