def setUp(self):
     self.auth = Auth('jsmith', 'qwerty')
     self.connpool = ConnectionPool(
         auth=self.auth,
         poolsize=22,
         timeout=33,
     )
Esempio n. 2
0
 def setUp(self):
     self.auth = Auth('jsmith', 'qwerty')
     self.conn = Connection(auth=self.auth)
     self.conn.conn_class = CustomHTTPConnection
     self.conn.http_connect()
     self.container = self.conn.get_container('container1')
     self.storage_object = self.container.get_object('object1')
Esempio n. 3
0
 def test_servicenet_cnx(self):
     """
     Test connection to servicenet.
     """
     auth = Auth('jsmith', 'qwerty')
     conn = Connection(auth=auth, servicenet=True)
     self.assert_(conn.connection_args[0].startswith("snet-"))
Esempio n. 4
0
 def setUp(self):
     self.auth = Auth('jsmith', 'xxxxxxxx')
Esempio n. 5
0
 def setUp(self):
     self.auth = Auth('jsmith', 'qwerty')
     self.conn = Connection(auth=self.auth)
     self.conn.conn_class = CustomHTTPConnection
     self.conn.http_connect()