return apply(self._cobj.verify, args, kwargs)
def set_get_returns_none(self, *args, **kwargs):
return apply(self._cobj.set_get_returns_none, args, kwargs)
-
#---------------------------------------------------------------------------
-
-
-
if txn :
txn.abort()
raise TableDBError, dberror[1]
-
#------------------------------------------------------------------------
-
class ShelveAssociateHashTestCase(ShelveAssociateTestCase):
- dbtype = db.DB_HASH
+ dbtype = db.DB_HASH
class ShelveAssociateBTreeTestCase(ShelveAssociateTestCase):
- dbtype = db.DB_BTREE
+ dbtype = db.DB_BTREE
class ShelveAssociateRecnoTestCase(ShelveAssociateTestCase):
dbtype = db.DB_RECNO
class ThreadedAssociateHashTestCase(ShelveAssociateTestCase):
- dbtype = db.DB_HASH
+ dbtype = db.DB_HASH
class ThreadedAssociateBTreeTestCase(ShelveAssociateTestCase):
- dbtype = db.DB_BTREE
+ dbtype = db.DB_BTREE
class ThreadedAssociateRecnoTestCase(ShelveAssociateTestCase):
dbtype = db.DB_RECNO
if __name__ == '__main__':
unittest.main( defaultTest='suite' )
-
if __name__ == '__main__':
unittest.main( defaultTest='suite' )
-
-
if __name__ == '__main__':
unittest.main( defaultTest='suite' )
-
if __name__ == '__main__':
unittest.main( defaultTest='suite' )
-
-
assert len(values) == 1, values
assert values[0]['d'] == "is for dog", values
assert values[0]['a'] == "is for aardvark", values
-
+
def test_Delete(self):
tabname = "test_Delete"
self.tdb.CreateTable(tabname, ['x', 'y', 'z'])
if __name__ == '__main__':
unittest.main( defaultTest='suite' )
-
-
if __name__ == '__main__':
unittest.main( defaultTest='suite' )
-
-
from bsddb import db
from test.test_support import verbose
-
-
if __name__ == '__main__':
unittest.main( defaultTest='suite' )
-
-
# For older HTTP, Keep-Alive indiciates persistent connection.
if self.msg.getheader('keep-alive'):
return False
-
+
# Proxy-Connection is a netscape hack.
pconn = self.msg.getheader('proxy-connection')
if pconn and pconn.lower().find("keep-alive") >= 0:
"""
mech = mechanism.upper()
cap = 'AUTH=%s' % mech
- #if not cap in self.capabilities: # Let the server decide!
+ #if not cap in self.capabilities: # Let the server decide!
# raise self.error("Server doesn't allow %s authentication." % mech)
self.literal = _Authenticator(authobject).process
typ, dat = self._simple_command('AUTHENTICATE', mech)
else:
M = IMAP4(host)
if M.state == 'AUTH':
- test_seq1 = test_seq1[1:] # Login not needed
+ test_seq1 = test_seq1[1:] # Login not needed
M._mesg('PROTOCOL_VERSION = %s' % M.PROTOCOL_VERSION)
M._mesg('CAPABILITIES = %s' % `M.capabilities`)
print "%7s %s" % item
resp = s.quit()
print resp
-
print '-=' * 38
unittest.main( defaultTest='suite' )
-
test_exc('%d', '1', TypeError, "int argument required")
test_exc('%g', '1', TypeError, "float argument required")
-test_exc('no format', '1', TypeError,
+test_exc('no format', '1', TypeError,
"not all arguments converted during string formatting")
-test_exc('no format', u'1', TypeError,
+test_exc('no format', u'1', TypeError,
"not all arguments converted during string formatting")
-test_exc(u'no format', '1', TypeError,
+test_exc(u'no format', '1', TypeError,
"not all arguments converted during string formatting")
-test_exc(u'no format', u'1', TypeError,
+test_exc(u'no format', u'1', TypeError,
"not all arguments converted during string formatting")
if sys.maxint == 2**32-1:
if verbose:
print line
-
+
# Perform tests
verify(c2 == NFC(c1) == NFC(c2) == NFC(c3), line)
verify(c4 == NFC(c4) == NFC(c5), line)
if X in part1_data:
continue
assert X == NFC(X) == NFD(X) == NFKC(X) == NFKD(X), c
-