def fake_participant_identity(participant, verification=None):
 country_id = random_country_id(participant.db)
 participant.store_identity_info(country_id, 'nothing-enforced', {})
 if verification:
  participant.set_identity_verification(country_id, verification)
 elif (random.randrange(2) == 0):
  participant.set_identity_verification(country_id, True)
 return country_id

def fake_participant_identity ( participant , verification = None ) : country_id = random_country_id ( participant . db ) participant . store_identity_info ( country_id , 'nothing-enforced' , { } ) if verification : participant . set_identity_verification ( country_id , verification ) elif ( random . randrange ( 2 ) == 0 ) : participant . set_identity_verification ( country_id , True ) return country_id
pick a country and make an identity for the participant there .