コード例 #1
0
ファイル: test_reqparse.py プロジェクト: imfht/flaskapps
 def test_default_type(self, mocker):
     mock_six = mocker.patch('flask_restplus.reqparse.six')
     arg = Argument('foo')
     sentinel = object()
     arg.type(sentinel)
     mock_six.text_type.assert_called_with(sentinel)
コード例 #2
0
ファイル: test_reqparse.py プロジェクト: zolg/flask-restplus
 def test_default_type(self, mock_six):
     arg = Argument('foo')
     sentinel = object()
     arg.type(sentinel)
     mock_six.text_type.assert_called_with(sentinel)
コード例 #3
0
ファイル: test_reqparse.py プロジェクト: bedge/flask-restplus
 def test_default_type(self, mocker):
     mock_six = mocker.patch('flask_restplus.reqparse.six')
     arg = Argument('foo')
     sentinel = object()
     arg.type(sentinel)
     mock_six.text_type.assert_called_with(sentinel)