def main(): parser = argparse.ArgumentParser() parser.add_argument('filenames', nargs='+') args = parser.parse_args() total = 0 for filename in args.filenames: records = screed.open(filename) total += sqer.sum_bp_records(records) print '%d bp total' % total
def test_sum_bp_records(): rl = [FakeRecord("A"), FakeRecord("G")] assert sqer.sum_bp_records(rl) == 2
def test_sum_bp_records(): rl = [ FakeRecord("A"), FakeRecord("G") ] assert sqer.sum_bp_records(rl) == 2