def test_count_seqs(self): test_seqs = [ ">a b", "aattggcc", ">b.xyz stuff", "asdasd", ">c", "qweasd", ">d.foo", "qweasdasd" ] obs = count_seqs(iter(test_seqs)) exp = 4 self.assertEqual(obs, exp) obs = count_seqs(iter(test_seqs), subset=['b', 'c', 'foo']) exp = 2 self.assertEqual(obs, exp)
def test_count_seqs(self): test_seqs = [">a b", "aattggcc", ">b.xyz stuff", "asdasd", ">c", "qweasd", ">d.foo", "qweasdasd"] obs = count_seqs(iter(test_seqs)) exp = 4 self.assertEqual(obs, exp) obs = count_seqs(iter(test_seqs), subset=['b', 'c', 'foo']) exp = 2 self.assertEqual(obs, exp)