[Mailman3-dev] test cases now work for bdb

Michael Kato mk2s at digitalcommute.com
Tue Apr 6 00:45:45 EDT 2004


Barry,

   I've rearranged the testcases(the three that I have so far) so that 
they can be run against the bdb backend as well as the stubbackend.  
I've come accross some questions.

   Given a email address either from a post or from a web login, how do 
we get the User object for this user?  Do I create an Address and ask 
it for the user?

   I was thinking get_user(uid, domain) should perhaps throw an 
exception(InvalidDomainError?) when passed a bogus domain.  So, I wrote 
a test case for that, and added code to the stubimpl and the tests went 
green.  Then I tried it with the bdbbackend and it didn't(as it only 
throws a NoUserError).  So I changed my implementation to match yours.

   Do we assume, that domains are checked before we get to that point?  
If so, do we already have a way to check a domain?  I know the info is 
available in the config, shall I write that routine?  Where should it 
go?

   Anyway, if you're interested, you could run the test (after 
configuring backendtest.conf) like:
python ./testUserOps.py


....maki....
PS.  I had to add a vardir and a lockdir into webserver.conf to get the 
webserver to start.




More information about the Mailman3-Dev mailing list