#NEWLINE# def test_marks_in_app_frames_for_stacktrace( self ) : #NEWLINE# #INDENT# client = TempStoreClient ( include_paths = [ 'foo' ] , exclude_paths = [ 'foo.bar' ] ) #NEWLINE# client . captureMessage ( 'hello' , data = { #NEWLINE# #INDENT# 'stacktrace' : { #NEWLINE# #INDENT# 'frames' : [ { #NEWLINE# #INDENT# 'module' : 'foo' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'module' : 'bar' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'module' : 'foo.bar' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'module' : 'foo.baz' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# event = client . events . pop ( 0 ) #NEWLINE# frames = frames [ 'stacktrace' ] [ 'frames' ] #NEWLINE# assert frames [ 0 ] [ 'in_app' ] #NEWLINE# assert ( not frames [ 1 ] [ 'in_app' ] ) #NEWLINE# assert ( not frames [ 2 ] [ 'in_app' ] ) #NEWLINE# assert frames [ 3 ] [ 'in_app' ]