Permalink
Browse files

CTest Saf parserVS: -------------------------------------------------…

…---------------------
  • Loading branch information...
1 parent 3f22a04 commit 427c2a024d494fac6c516af568f3b16ae0a2f38a katel committed May 14, 2002
Showing with 28 additions and 0 deletions.
  1. +28 −0 Tests/test_saf.py
View
@@ -0,0 +1,28 @@
+"""Tests the basic functionality of the SAF parsers.
+"""
+
+import os
+
+import Bio.Saf
+from Bio.File import SGMLHandle
+
+testfiles = [ 'saf1.txt' ]
+
+for file in testfiles:
+ fh = open(os.path.join("Saf", file))
+ print "Testing Bio.Saf on " + file + "\n\n"
+ records = Bio.Saf.Iterator( fh, Bio.Saf.RecordParser(debug_level=0))
+ while 1:
+# for j in range( 0, 1 ):
+ record = records.next()
+ if record is not None:
+ print record
+ pass
+ else:
+ break
+ print "\n"
+
+
+
+
+

0 comments on commit 427c2a0

Please sign in to comment.