remove annot class in favor of SeqSpan
[mussa.git] / py / test / TestSequence.py
index 5fcc36205aa0d1b04614c5ab08c96421ed9fc290..80fc3e68e84f5489169b011207d489c0023049a5 100644 (file)
@@ -29,14 +29,8 @@ class TestSequence(unittest.TestCase):
     self.failUnless(s.species == species)
 
   def testAnnotations(self):
-    annot = mussa.annot()
-    annot.begin = 0
-    annot.end = 10
-    annot.name = "foo"
-    annot.type = "utr"
-
     seq = mussa.Sequence("AAGGCCTTAATTGGCCTT")
-    seq.add_annotation(annot)
+    seq.add_annotation("foo", "utr", 0, 10)
 
   def notestFile(self):
     # remove no prefix once we have sequence loading from a stream