From 55ad44fb6a123cb4d7d64dcdb8604ece3d1d9acc Mon Sep 17 00:00:00 2001
From: juergen <juergen@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Thu, 24 Jun 2010 14:36:58 +0000
Subject: [PATCH] adding test for loading pdbs and generating the sequence for
 module io

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2462 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/io/doc/io.rst | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/modules/io/doc/io.rst b/modules/io/doc/io.rst
index c410b5062..6685bffd3 100644
--- a/modules/io/doc/io.rst
+++ b/modules/io/doc/io.rst
@@ -176,15 +176,22 @@ For a list of file formats supported by :func:`SaveSequence` see :doc:`formats`.
   For a list of file formats supported by :func:`SaveAlignment` see :doc:`formats`.
 
 
-.. testsetup:: *
-  import io
-  
-.. doctest::
-  CHECKME
-  
-.. testcode::
-  print 'hi'
-  
-.. testoutput::
+.. testsetup:: io
+  from ost import io
+
+.. testcode:: io
+  :hide:
+
+  from ost import io,seq
+  ent=io.LoadPDB('./examples/entity/fragment.pdb')
+  print ent.atom_count 
+  myseq=seq.SequenceFromChain('t',ent.chains[0])
+  print myseq.GetLength()
+
+.. testoutput:: io
+  :hide:
+
+  81
+  12
 
 
-- 
GitLab