コード例 #1
0
ファイル: test_bokeh_init.py プロジェクト: Afey/bokeh
 def test_print(self):
     import bokeh
     bokeh.print_versions()
     # check the correct info is present
     sysinfo = [platform.python_version(),
                platform.python_implementation(),
                platform.platform(),
                bokeh.__version__]
     for info in sysinfo:
         self.assertIn(info, self.out.value)
コード例 #2
0
 def test_print(self):
     import bokeh
     bokeh.print_versions()
     # check the correct info is present
     sysinfo = [platform.python_version(),
                platform.python_implementation(),
                platform.platform(),
                bokeh.__version__]
     for info in sysinfo:
         self.assertIn(info, self.out.value)
コード例 #3
0
ファイル: test_bokeh_init.py プロジェクト: JaakkoTulkki/bokeh
	def test_print(self):
		import bokeh
		#remove nodename from the system info
		sysinfo = list(platform.uname())
		del sysinfo[1]		
		bokeh.print_versions()
		#check the correct info is present
		for info in sysinfo:
			self.assertIn(info,self.out.value)
		self.assertIn(sys.version,self.out.value)
		self.assertIn(bokeh.__version__,self.out.value)
コード例 #4
0
 def test_print(self):
     import bokeh
     # remove nodename and processor from the system info
     sysinfo = list(platform.uname())
     del sysinfo[1]
     del sysinfo[-1]
     bokeh.print_versions()
     # check the correct info is present
     for info in sysinfo:
         self.assertIn(info, self.out.value)
     self.assertIn(sys.version, self.out.value)
     self.assertIn(bokeh.__version__, self.out.value)