def test_translate_to_prot_valid_dna2(self):
        valid_dna2 = 'GAGAGAGAGAGAGAGAGAT'
        valid_dna2_pro0 = 'ERERER'
        valid_dna2_pro1 = 'RERERD'
        valid_dna2_pro2 = 'ERERE'

        prot_seqs = translate_to_prot(valid_dna2)

        # assure correct type
        self.assertEqual(list, type(prot_seqs), 'Incorrect type')

        # assure correct length
        self.assertEqual(3, len(prot_seqs), 'Incorrect length')

        # assure protein sequences shorter than dna sequence
        self.assertTrue(len(prot_seqs[0]) <= len(valid_dna2), 'Too many prots')
        self.assertTrue(len(prot_seqs[1]) <= len(valid_dna2), 'Too many prots')
        self.assertTrue(len(prot_seqs[2]) <= len(valid_dna2), 'Too many prots')

        # assure protein translated correctly
        self.assertEqual(valid_dna2_pro0, prot_seqs[0], 'Incorrect prot translation')
        self.assertEqual(valid_dna2_pro1, prot_seqs[1], 'Incorrect prot translation')
        self.assertEqual(valid_dna2_pro2, prot_seqs[2], 'Incorrect prot translation')

        print(valid_dna2)
        print("".join([(x + "  ") for x in prot_seqs[0]]))
        print("".join([(" " + x + " ") for x in prot_seqs[1]]))
        print("".join([("  " + x) for x in prot_seqs[2]]))
    def test_translate_to_prot_valid_dna1(self):
        valid_dna1 = 'TTATATATTTATATATTTT'
        valid_dna1_pro0 = 'LYIYIF'
        valid_dna1_pro1 = 'YIFIYF'
        valid_dna1_pro2 = 'IYLYI'

        prot_seqs = translate_to_prot(valid_dna1)

        # assure correct type
        self.assertEqual(list, type(prot_seqs), 'Incorrect type')

        # assure correct length
        self.assertEqual(3, len(prot_seqs), 'Incorrect length')

        # assure protein sequences shorter than dna sequence
        self.assertTrue(len(prot_seqs[0]) <= len(valid_dna1), 'Too many prots')
        self.assertTrue(len(prot_seqs[1]) <= len(valid_dna1), 'Too many prots')
        self.assertTrue(len(prot_seqs[2]) <= len(valid_dna1), 'Too many prots')

        # assure protein translated correctly
        self.assertEqual(valid_dna1_pro0, prot_seqs[0], 'Incorrect prot translation')
        self.assertEqual(valid_dna1_pro1, prot_seqs[1], 'Incorrect prot translation')
        self.assertEqual(valid_dna1_pro2, prot_seqs[2], 'Incorrect prot translation')

        print(valid_dna1)
        print("".join([(x + "  ") for x in prot_seqs[0]]))
        print("".join([(" " + x + " ") for x in prot_seqs[1]]))
        print("".join([("  " + x) for x in prot_seqs[2]]))