예제 #1
0
파일: test_file.py 프로젝트: openEDI/h5pyd
 def test_serverinfo(self):
     if h5py.__name__ == "h5pyd":
         info = h5py.getServerInfo()
         self.assertTrue("greeting" in info)
         self.assertTrue("name" in info)
         self.assertTrue("about" in info)
         self.assertTrue("endpoint" in info)
         self.assertTrue("username" in info)
         self.assertTrue("password" in info)
예제 #2
0
파일: test_file.py 프로젝트: HDFGroup/h5pyd
 def test_serverinfo(self):
     if h5py.__name__ == "h5pyd":
         info = h5py.getServerInfo()
         self.assertTrue("greeting" in info)
         self.assertTrue("name" in info)
         self.assertTrue("about" in info)
         self.assertTrue("endpoint" in info)
         self.assertTrue("username" in info)
         self.assertTrue("password" in info)
         if "hsds_version" in info:
             # server is HSDS
             self.assertTrue("node_count" in info)
             node_count = info["node_count"]
             self.assertTrue(node_count >= 1)
             self.assertTrue("isadmin" in info)