@@ -54,7 +54,6 @@ def test_couchdb_context_helper(self):
5454 with couchdb (self .user , self .pwd , url = self .url ) as c :
5555 self .assertIsInstance (c , CouchDB )
5656 self .assertIsInstance (c .r_session , requests .Session )
57- self .assertEqual (c .r_session .auth , (self .user , self .pwd ))
5857 except Exception as err :
5958 self .fail ('Exception {0} was raised.' .format (str (err )))
6059
@@ -88,17 +87,10 @@ def test_constructor_with_url(self):
8887 def test_connect (self ):
8988 """
9089 Test connect and disconnect functionality.
91- Client r_session_auth is not set in CouchDB Admin Party mode.
9290 """
9391 try :
9492 self .client .connect ()
9593 self .assertIsInstance (self .client .r_session , requests .Session )
96- if self .client .admin_party :
97- self .assertIsNone (self .client .r_session .auth )
98- else :
99- self .assertEqual (
100- self .client .r_session .auth , (self .user , self .pwd )
101- )
10294 finally :
10395 self .client .disconnect ()
10496 self .assertIsNone (self .client .r_session )
@@ -110,12 +102,6 @@ def test_auto_connect(self):
110102 try :
111103 self .set_up_client (auto_connect = True )
112104 self .assertIsInstance (self .client .r_session , requests .Session )
113- if self .client .admin_party :
114- self .assertIsNone (self .client .r_session .auth )
115- else :
116- self .assertEqual (
117- self .client .r_session .auth , (self .user , self .pwd )
118- )
119105 finally :
120106 self .client .disconnect ()
121107 self .assertIsNone (self .client .r_session )
@@ -130,12 +116,6 @@ def test_multiple_connect(self):
130116 self .set_up_client (auto_connect = True )
131117 self .client .connect ()
132118 self .assertIsInstance (self .client .r_session , requests .Session )
133- if self .client .admin_party :
134- self .assertIsNone (self .client .r_session .auth )
135- else :
136- self .assertEqual (
137- self .client .r_session .auth , (self .user , self .pwd )
138- )
139119 finally :
140120 self .client .disconnect ()
141121 self .assertIsNone (self .client .r_session )
@@ -447,7 +427,6 @@ def test_cloudant_context_helper(self):
447427 with cloudant (self .user , self .pwd , account = self .account ) as c :
448428 self .assertIsInstance (c , Cloudant )
449429 self .assertIsInstance (c .r_session , requests .Session )
450- self .assertEqual (c .r_session .auth , (self .user , self .pwd ))
451430 except Exception as err :
452431 self .fail ('Exception {0} was raised.' .format (str (err )))
453432
0 commit comments