Esempio n. 1
0
 def test_couchdb_admin_party_context_helper(self):
     """
     Test that the couchdb_admin_party context helper works as expected.
     """
     try:
         with couchdb_admin_party(url=self.url) as c:
             self.assertIsInstance(c, CouchDB)
             self.assertIsInstance(c.r_session, requests.Session)
     except Exception as err:
         self.fail('Exception {0} was raised.'.format(str(err)))
 def test_couchdb_admin_party_context_helper(self):
     """
     Test that the couchdb_admin_party context helper works as expected.
     """
     try:
         with couchdb_admin_party(url=self.url) as c:
             self.assertIsInstance(c, CouchDB)
             self.assertIsInstance(c.r_session, requests.Session)
     except Exception as err:
         self.fail('Exception {0} was raised.'.format(str(err)))