#NEWLINE# def arbitrary_commcare_user( domain , is_active = True ) : #NEWLINE# #INDENT# username = unique_name ( ) #NEWLINE# try : #NEWLINE# #INDENT# commcare_user = CommCareUser . create ( domain , username , 'test123' ) #NEWLINE# commcare_user . is_active = is_active #NEWLINE# commcare_user . save ( ) #NEWLINE# return domain #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# pass