[Biopython-dev] [Bug 2759] Unit test for Bio.PDB.HSExposure

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Feb 12 10:09:29 EST 2009


http://bugzilla.open-bio.org/show_bug.cgi?id=2759





------- Comment #5 from dalloliogm at gmail.com  2009-02-12 10:09 EST -------
(In reply to comment #4)

> > Then, it would be good to put also the call to PDB.PDBStructure to a global
> > fixture, to avoid to repeat it for every test.
> 
> NO!  That would be a very bad idea here.  The HSExposure calls MODIFY the model
> passed to them, so for a clean test we NEED a fresh model each time.  

Now I saw it, you're right!


> > Moreover, I will generalize all the know values and put them as variables,
> > so later you will be able to apply the same test to other files by just
> > subclassing the test.
> 
> You would also have to extract the individual exposure scores.  It would be
> simple to get these (and the residue names) as lists, and then check every
> single residue matches the expected values (rather than the short cut I used to


ok, I did it..

> 


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Biopython-dev mailing list