#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . request = MagicMock ( ) #NEWLINE# self . view_instance = MotionViewSet ( ) #NEWLINE# self . view_instance . request = self . request #NEWLINE# self . view_instance . kwargs = MagicMock ( ) #NEWLINE# self . view_instance . get_object = MagicMock ( ) #NEWLINE# self . view_instance . get_serializer = get_serializer_mock = MagicMock ( ) #NEWLINE# get_serializer_mock . return_value = self . mock_serializer = MagicMock ( )