コード例 #1
0
ファイル: test_ext.py プロジェクト: nanoha25/flask_local
def test_flaskext_old_package_import_submodule_function(oldext_package):
    from flask.ext.oldext_package.submodule import test_function
    assert test_function() == 42
コード例 #2
0
ファイル: test_ext.py プロジェクト: nanoha25/flask_local
def test_flaskext_new_package_import_submodule_function(newext_package):
    from flask.ext.newext_package.submodule import test_function
    assert test_function() == 42
コード例 #3
0
ファイル: test_ext.py プロジェクト: nanoha25/flask_local
def test_flaskext_old_package_import_submodule(oldext_package):
    from flask.ext.oldext_package import submodule
    assert submodule.__name__ == 'flaskext.oldext_package.submodule'
    assert submodule.test_function() == 42
コード例 #4
0
ファイル: ext.py プロジェクト: snach/Fomums-db-api
 def test_flaskext_old_package_import_submodule_function(self):
     from flask.ext.oldext_package.submodule import test_function
     self.assert_equal(test_function(), 42)
コード例 #5
0
ファイル: ext.py プロジェクト: snach/Fomums-db-api
 def test_flaskext_old_package_import_submodule(self):
     from flask.ext.oldext_package import submodule
     self.assert_equal(submodule.__name__, 'flaskext.oldext_package.submodule')
     self.assert_equal(submodule.test_function(), 42)
コード例 #6
0
ファイル: test_ext.py プロジェクト: akashagarwal/qPaaS
def test_flaskext_old_package_import_submodule_function(oldext_package):
    from flask.ext.oldext_package.submodule import test_function
    assert test_function() == 42
コード例 #7
0
ファイル: test_ext.py プロジェクト: akashagarwal/qPaaS
def test_flaskext_old_package_import_submodule(oldext_package):
    from flask.ext.oldext_package import submodule
    assert submodule.__name__ == 'flaskext.oldext_package.submodule'
    assert submodule.test_function() == 42
コード例 #8
0
ファイル: test_ext.py プロジェクト: akashagarwal/qPaaS
def test_flaskext_new_package_import_submodule_function(newext_package):
    from flask.ext.newext_package.submodule import test_function
    assert test_function() == 42