remove annot class in favor of SeqSpan
[mussa.git] / py / test / TestSequence.py
index 274fbdba4cd751da41dec9221b9cc79a888eff3a..80fc3e68e84f5489169b011207d489c0023049a5 100644 (file)
@@ -27,7 +27,21 @@ class TestSequence(unittest.TestCase):
     s.species = species
     self.failUnless(s.header == header_text)
     self.failUnless(s.species == species)
-     
+
+  def testAnnotations(self):
+    seq = mussa.Sequence("AAGGCCTTAATTGGCCTT")
+    seq.add_annotation("foo", "utr", 0, 10)
+
+  def notestFile(self):
+    # remove no prefix once we have sequence loading from a stream
+    seq_text = "AAGGCCTT"
+    from StringIO import StringIO
+    s = StringIO(seq_text)
+
+    seq = mussa.Sequence(s)
+
+    self.failUnless(seq == seq_text)
+
 def suite():
   return unittest.makeSuite(TestSequence, 'test')