#NEWLINE# @ mock . patch ( OBJECTS_BASE_OBJ_FROM_PRIMITIVE ) #NEWLINE# def test_clean_obj_from_primitive( self , get_prim_m ) : #NEWLINE# #INDENT# expected_obj = get_prim_m . return_value #NEWLINE# observed_obj = self . _test_class . clean_obj_from_primitive ( 'foo' , 'bar' ) #NEWLINE# self . assertIs ( self , observed_obj ) #NEWLINE# self . assertTrue ( observed_obj . obj_reset_changes . called )