Author giampaolo.rodola
Recipients brett.cannon, giampaolo.rodola
Date 2008-01-30.02:51:31
SpamBayes Score 0.00375861
Marked as misclassified No
Message-id <1201661494.3.0.0986099948243.issue1960@psf.upfronthosting.co.za>
In-reply-to
Content
Updated version in attachment. 
Changes:

- Added "if self.g is not None: self.g.close()" clause in tearDown.
- Used "test.test_support.unlink(filename)" instead of the try/except
statement.
- Added tests for the flag clause in the open() statement by trying all
supported mode flags. I also called the method "test_flags" instead of
"test_modes" since "mode" is a kwarg for open().
- Added tests for trying to open non existing database with flag == 'r'
and 'w'.

Untested methods which are now tested:
- keys().
- firstkey().
- nextkey().
- reorganize()

The only method currently not tested yet is sync(). I'm not sure how to
test it, maybe I'm misunderstanding its purpose.
History
Date User Action Args
2008-01-30 02:51:34giampaolo.rodolasetspambayes_score: 0.00375861 -> 0.00375861
recipients: + giampaolo.rodola, brett.cannon
2008-01-30 02:51:34giampaolo.rodolasetspambayes_score: 0.00375861 -> 0.00375861
messageid: <1201661494.3.0.0986099948243.issue1960@psf.upfronthosting.co.za>
2008-01-30 02:51:32giampaolo.rodolalinkissue1960 messages
2008-01-30 02:51:31giampaolo.rodolacreate