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])
def setUp(self): """Define some standard SequenceHandles.""" self.rna = SequenceHandle('uuca', 'ucag') self.any = SequenceHandle(['u', 1, None]) self.empty = SequenceHandle()