def test_get_version(test_apps, capsys):
 from flask import __version__ as flask_ver
 from sys import version as py_ver
 class MockCtx(object, ):
  resilient_parsing = False
  color = None
  def exit(self):
   return
 ctx = MockCtx()
 get_version(ctx, None, 'test')
 (out, err) = capsys.readouterr()
 assert (flask_ver in out)
 assert (py_ver in out)

def test_get_version ( test_apps , capsys ) : from flask import __version__ as flask_ver from sys import version as py_ver class MockCtx ( object , ) : resilient_parsing = False color = None def exit ( self ) : return ctx = MockCtx ( ) get_version ( ctx , None , 'test' ) ( out , err ) = capsys . readouterr ( ) assert ( flask_ver in out ) assert ( py_ver in out )
test of get_version .