Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
test_PDB.CopyTests Class Reference

List of all members.

Public Member Functions

def setUp
def test_atom_copy
def test_entitity_copy

Public Attributes

 s
 m
 c
 r
 a

Detailed Description

Definition at line 868 of file test_PDB.py.


Member Function Documentation

def test_PDB.CopyTests.setUp (   self)

Definition at line 870 of file test_PDB.py.

00870 
00871     def setUp(self):
00872         self.s = PDBParser(PERMISSIVE=True).get_structure(
00873             'X', "PDB/a_structure.pdb")
00874         self.m = self.s.get_list()[0]
00875         self.c = self.m.get_list()[0]
00876         self.r = self.c.get_list()[0]
00877         self.a = self.r.get_list()[0]

Definition at line 878 of file test_PDB.py.

00878 
00879     def test_atom_copy(self):
00880         aa = self.a.copy()
00881         self.assertFalse(self.a is aa)
00882         self.assertFalse(self.a.get_coord() is aa.get_coord())

Make a copy of a residue.

Definition at line 883 of file test_PDB.py.

00883 
00884     def test_entitity_copy(self):
00885         """Make a copy of a residue."""
00886         for e in (self.s, self.m, self.c, self.r):
00887             ee = e.copy()
00888             self.assertFalse(e is ee)
00889             self.assertFalse(e.get_list()[0] is ee.get_list()[0])
00890 


Member Data Documentation

Definition at line 876 of file test_PDB.py.

Definition at line 874 of file test_PDB.py.

Definition at line 873 of file test_PDB.py.

Definition at line 875 of file test_PDB.py.

Definition at line 871 of file test_PDB.py.


The documentation for this class was generated from the following file: