Exemple #1
0
 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)
Exemple #2
0
 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)