Beispiel #1
0
 def test_init_good(self):
     """SequenceHandle should init OK without alphabet"""
     self.assertEqual(SequenceHandle('abc123'), list('abc123'))
     self.assertEqual(SequenceHandle(), list())
     self.assertEqual(SequenceHandle('abcaaa', 'abcd'), list('abcaaa'))
     self.assertEqual(SequenceHandle([1,2,3]), [1,2,3])
Beispiel #2
0
 def setUp(self):
     """Define some standard SequenceHandles."""
     self.rna = SequenceHandle('uuca', 'ucag')
     self.any = SequenceHandle(['u', 1, None])
     self.empty = SequenceHandle()