#NEWLINE# @ pytest . fixture #NEWLINE# def mock_user( T ) : #NEWLINE# #INDENT# mock_user = mock . MagicMock ( profile = T . build_mock . profile ( ) , inbox = Fetchable ( mock . Mock ( fetch = ( lambda : ( i for i in range ( 0 ) ) ) ) ) , outbox = Fetchable ( mock . Mock ( fetch = ( lambda : ( i for i in range ( 0 ) ) ) ) ) ) #NEWLINE# return mock_user