def test_find_best_app(test_apps):
 class Module:
  app = Flask('appname')
 assert (find_best_app(Module) == Module.app)
 class Module:
  application = Flask('appname')
 assert (find_best_app(Module) == Module.application)
 class Module:
  myapp = Flask('appname')
 assert (find_best_app(Module) == Module.myapp)
 class Module:
  pass
 pytest.raises(NoAppException, find_best_app, Module)
 class Module:
  myapp1 = Flask('appname1')
  myapp2 = Flask('appname2')
 pytest.raises(NoAppException, find_best_app, Module)

def test_find_best_app ( test_apps ) : class Module : app = Flask ( 'appname' ) assert ( find_best_app ( Module ) == Module . app ) class Module : application = Flask ( 'appname' ) assert ( find_best_app ( Module ) == Module . application ) class Module : myapp = Flask ( 'appname' ) assert ( find_best_app ( Module ) == Module . myapp ) class Module : pass pytest . raises ( NoAppException , find_best_app , Module ) class Module : myapp1 = Flask ( 'appname1' ) myapp2 = Flask ( 'appname2' ) pytest . raises ( NoAppException , find_best_app , Module )
test if find_best_app behaves as expected with different combinations of input .