Exemplo n.º 1
0
 def test_record_basic(self):
     """Basic test on Record."""
     r = GenePop.Record()
     self.assertIsInstance(r.marker_len, int)
     self.assertIsInstance(r.comment_line, str)
     self.assertIsInstance(r.loci_list, list)
     self.assertIsInstance(r.populations, list)
    def test_record_basic(self):
        """Basic test on Record
        """

        r = GenePop.Record()
        assert type(r.marker_len)   == int
        assert type(r.comment_line) == str
        assert type(r.loci_list)    == list
        assert type(r.populations)  == list
Exemplo n.º 3
0
# Copyright 2007 by Tiago Antao.  All rights reserved.
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that should have been included as part of this
# package.

from Bio.PopGen import GenePop
"""
Utility functions to deal with GenePop files

This had some functions that where moved to
GenePop.Record (now methods of that class).

This file is maintained as it is believed it will have
utility functions in the future again.
"""