# Path: alfpy/utils/seqrecords.py
# class SeqRecords:
#     def __init__(self, id_list=None, seq_list=None):
#     def add(self, seqid, seq):
#     def fasta(self, wrap=70):
#     def length_list(self):
#     def __iter__(self):
#     def __len__(self):
#     def __repr__(self):
# def read_fasta(handle):
# def main():


import unittest
from alfpy.utils import seqrecords
from . import utils




class SeqRecordsTest(unittest.TestCase):

    def __init__(self, *args, **kwargs):
        super(SeqRecordsTest, self).__init__(*args, **kwargs)
        self.ID_LIST = ['seq1', 'seq2', 'seq3', 'seq4']
        self.DESC_LIST = ['seq1 desc', 'seq2 desc', 'seq3 desc', '']
        self.SEQ_LIST = [
            'MEVVIRSANFTDNAKIIIVQLNASVEINCTRPNNYTRKGIRIGPGRAVYAAEEIIGDNTLKQVVTKLRE',
            'MVIRSANFTDNAKIIIVQLNASVEINCTRPNNNTRKGIRIGPGRAVYAAEEIIGDIRRAHCNIS',
            'MFTDNAKIIIVQLNASVEINCTRPNNNTRKGIHIGPGRAFYATGEIIGDIRQAHCNISGAKW',
            'MFTDNAKIIIVQLNASVEINCTRPNNNTR'
        ]

    def _validate_seqrecords(self, rec):
        self.assertEqual(rec.id_list, self.ID_LIST)
        self.assertEqual(rec.seq_list, self.SEQ_LIST)
        self.assertEqual(rec.length_list, [len(s) for s in self.SEQ_LIST])
        self.assertEqual(rec.count, len(self.SEQ_LIST))

    def test_SeqRecords_init(self):

# Path: alfpy/utils/seqrecords.py
# class SeqRecords:
#     def __init__(self, id_list=None, seq_list=None):
#     def add(self, seqid, seq):
#     def fasta(self, wrap=70):
#     def length_list(self):
#     def __iter__(self):
#     def __len__(self):
#     def __repr__(self):
# def read_fasta(handle):
# def main():


# Path: tests/test_seqrecords.py
import unittest
from alfpy.utils import seqrecords
from . import utils





class SeqRecordsTest(unittest.TestCase):

    def __init__(self, *args, **kwargs):
        super(SeqRecordsTest, self).__init__(*args, **kwargs)
        self.ID_LIST = ['seq1', 'seq2', 'seq3', 'seq4']
        self.DESC_LIST = ['seq1 desc', 'seq2 desc', 'seq3 desc', '']
        self.SEQ_LIST = [
            'MEVVIRSANFTDNAKIIIVQLNASVEINCTRPNNYTRKGIRIGPGRAVYAAEEIIGDNTLKQVVTKLRE',
            'MVIRSANFTDNAKIIIVQLNASVEINCTRPNNNTRKGIRIGPGRAVYAAEEIIGDIRRAHCNIS',
            'MFTDNAKIIIVQLNASVEINCTRPNNNTRKGIHIGPGRAFYATGEIIGDIRQAHCNISGAKW',
            'MFTDNAKIIIVQLNASVEINCTRPNNNTR'
        ]

    def _validate_seqrecords(self, rec):
        self.assertEqual(rec.id_list, self.ID_LIST)
        self.assertEqual(rec.seq_list, self.SEQ_LIST)
        self.assertEqual(rec.length_list, [len(s) for s in self.SEQ_LIST])
        self.assertEqual(rec.count, len(self.SEQ_LIST))

    def test_SeqRecords_init(self):

        rec = seqrecords.SeqRecords(