Exemplo n.º 1
0
 def test_multi(self):
     r = list(transform.drop_columns(self.sequences, [slice(0, 1), slice(2, None)]))
     self.assertEqual([i.id for i in self.sequences],
             [i.id for i in r])
     self.assertEqual(['A', '-', 'A'], [str(i.seq) for i in r])
Exemplo n.º 2
0
 def test_multi(self):
     r = list(transform.drop_columns(self.sequences, [slice(0, 1), slice(2, None)]))
     self.assertEqual([i.id for i in self.sequences],
             [i.id for i in r])
     self.assertEqual(['A', '-', 'A'], [str(i.seq) for i in r])
Exemplo n.º 3
0
 def test_basic(self):
     r = list(transform.drop_columns(self.sequences, [slice(1, None)]))
     self.assertEqual([i.id for i in self.sequences],
             [i.id for i in r])
     self.assertEqual(['A', 'A', '-'], [str(i.seq) for i in r])
Exemplo n.º 4
0
 def test_basic(self):
     r = list(transform.drop_columns(self.sequences, [slice(1, None)]))
     self.assertEqual([i.id for i in self.sequences],
             [i.id for i in r])
     self.assertEqual(['A', 'A', '-'], [str(i.seq) for i in r])