def test_main_module():
 cmd = [sys.executable, '-m', 'bokeh', '--version']
 v = subprocess.check_output(cmd, stderr=subprocess.STDOUT).decode().strip()
 assert (v == bokeh.__version__)

def test_main_module ( ) : cmd = [ sys . executable , '-m' , 'bokeh' , '--version' ] v = subprocess . check_output ( cmd , stderr = subprocess . STDOUT ) . decode ( ) . strip ( ) assert ( v == bokeh . __version__ )
test the __main__ .