#NEWLINE# @ patch ( 'flask_views.db.mongoengine.edit.super' , create = True ) #NEWLINE# def test_get( self , super_mock ) : #NEWLINE# #INDENT# '\n        Test :py:meth:`.BaseCreateView.get`.\n        ' #NEWLINE# super_class = Mock ( ) #NEWLINE# super_class . get . return_value = 'get-response' #NEWLINE# super_mock . return_value = view #NEWLINE# view = BaseCreateView ( ) #NEWLINE# view . object = 'foo' #NEWLINE# self . assertEqual ( 'get-response' , view . get ( 'something' , foo = 'bar' ) ) #NEWLINE# self . assertEqual ( None , view . object ) #NEWLINE# super_class . get . assert_called_once_with ( 'something' , foo = 'bar' )