first passed component tests
Make the first component tests pass by correcting XMLDummyServer and xmldiff (in tests/utils.py) darcs-hash:20051127155735-684f5-82dc72186ef66c59ac9671f83d1ec90ea66ee5b1.gz
This commit is contained in:
@@ -123,12 +123,12 @@ class DBMStorage(Storage):
|
||||
print >>sys.stderr, e
|
||||
|
||||
def __setitem__(self, pk_tuple, obj):
|
||||
print "Adding " + "#".join(pk_tuple) + " = " + str(obj)
|
||||
# print "Adding " + "#".join(pk_tuple) + " = " + str(obj)
|
||||
self.__str_registered["#".join(pk_tuple)] = str(obj)
|
||||
self.sync()
|
||||
|
||||
def __getitem__(self, pk_tuple):
|
||||
print "Getting " + "#".join(pk_tuple)
|
||||
# print "Getting " + "#".join(pk_tuple)
|
||||
if len(pk_tuple) == self.nb_pk_fields:
|
||||
return mailconnection_factory.str_to_mail_connection(self.__str_registered["#".join(pk_tuple)])
|
||||
else:
|
||||
@@ -139,7 +139,7 @@ class DBMStorage(Storage):
|
||||
if regexp.search(key)]
|
||||
|
||||
def __delitem__(self, pk_tuple):
|
||||
print "Deleting " + "#".join(pk_tuple)
|
||||
# print "Deleting " + "#".join(pk_tuple)
|
||||
del self.__str_registered["#".join(pk_tuple)]
|
||||
self.sync()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user