#NEWLINE# def test_blank_case_id_in_balance( self ) : #NEWLINE# #INDENT# instance_id = submit_case_blocks ( case_blocks = get_single_balance_block ( case_id = '' , product_id = self . products [ 0 ] . _id , quantity = 100 ) , domain = self . domain . name ) #NEWLINE# instance = XFormInstance . get ( instance_id ) #NEWLINE# self . assertEqual ( 'XFormError' , instance . doc_type ) #NEWLINE# self . assertTrue ( ( 'IllegalCaseId' in instance . problem ) )