def test_filter_description(self): expected = self.sequences[3:] actual = list(transform.name_include(self.sequences, r'sequence id 4|test seq')) self.assertEqual(2, len(actual)) self.assertEqual(expected, actual)
def test_filter_id(self): expected = self.sequences[:2] actual = list(transform.name_include(self.sequences, r'sequenceid[12]')) self.assertEqual(2, len(actual)) self.assertEqual(expected, actual)