# Path: alfpy/utils/fasta.py
# class FastaRecord():
#     def __init__(self, seq, seqid, description=False):
#     def __iter__(self):
#     def __contains__(self, char):
#     def __str__(self):
#     def __len__(self):
#     def format(self, wrap=70):
# def parse(handle):
# def read(handle):
# def to_dict(sequences):


import os
import unittest
from alfpy.utils import fasta
from . import utils




class FastaTest(unittest.TestCase):

    def __init__(self, *args, **kwargs):
        super(FastaTest, 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_FastaRecord_init(self, fasta_record, seqidx):

# Path: alfpy/utils/fasta.py
# class FastaRecord():
#     def __init__(self, seq, seqid, description=False):
#     def __iter__(self):
#     def __contains__(self, char):
#     def __str__(self):
#     def __len__(self):
#     def format(self, wrap=70):
# def parse(handle):
# def read(handle):
# def to_dict(sequences):


# Path: tests/test_fasta.py
import os
import unittest
from alfpy.utils import fasta
from . import utils





class FastaTest(unittest.TestCase):

    def __init__(self, *args, **kwargs):
        super(FastaTest, 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_FastaRecord_init(self, fasta_record, seqidx):

        self.assertIsInstance(fasta_record, fasta.FastaRecord)