def test_10(self):
     instance = quality_filter.MaxAmbiguousFilter(10)
     filtered = list(instance.filter_records(self.records))
     self.assertEqual(filtered, self.records)
 def test_1(self):
     instance = quality_filter.MaxAmbiguousFilter(1)
     filtered = list(instance.filter_records(self.records))
     self.assertEqual([self.records[i] for i in (0, 2)], filtered)
 def test_none(self):
     instance = quality_filter.MaxAmbiguousFilter(0)
     filtered = list(instance.filter_records(self.records))
     self.assertEqual(len(filtered), 1)
     self.assertEqual(str(self.records[0].seq), str(filtered[0].seq))