[Biopython-dev] [Bug 2820] Convert test_PDB.py to unittest
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Fri Apr 24 04:05:29 EDT 2009
http://bugzilla.open-bio.org/show_bug.cgi?id=2820
------- Comment #3 from dalloliogm at gmail.com 2009-04-24 04:05 EST -------
(In reply to comment #0)
> The current test script for Bio.PDB uses the print-and-compare approach. I've
> written an equivalent test script using unittest, assuming that style is the
> preferred one.
>
> It was written to go with Bug 2754, but now lives on my pdbtidy branch:
> http://github.com/etal/biopython/tree/pdbtidy
>
> This script could also live alongside the original test_PDB.py for awhile, as
> an additional check on Bio.PDB's error handling.
>
I also tried to write an unittest-based test for PDB exposure, just for playing
with it a bit:
-
http://github.com/dalloliogm/biopython/blob/7dabfff5f7b523479bf8d6de120d0f6c7d03f7df/Tests/test_PDBexposure.py
I used the approach where one unit test is equivalent to a PDB file, instead of
a set of functions.
For example:
- test case 1: PDB.NeighborSearch is able to read a random generated PDB file
- test case 2: PDB.NeighborSearch is able to read a pdb file with only one
structure
- test case 3: PDB.NeighborSearch is able to read another specific pdb case
--
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