Beispiel #1
0
    def testA(self):
        """test connection"""
        cObj = CouchObject()
        cObj.cdb_database = self.database
        cObj.cdb_url = self.url

        self.assertEqual(cObj.connected, False)

        cObj.connect()

        self.assertEqual(cObj.connected, True)
Beispiel #2
0
    def testA(self):
        """test connection"""
        cObj = CouchObject()
        cObj.cdb_database = self.database
        cObj.cdb_url = self.url

        self.assertEqual(cObj.connected, False)

        cObj.connect()

        self.assertEqual(cObj.connected, True)