def read_arlequin(something, what='guess', raw=False): """Read the Arlequin input format.""" items = [] for entry in iterate_arlequin(something, what, raw): items.append(entry) return items
def test_iterate_arlequin_with_raw_return(): """iterate_arlequin with raw option""" for entry in iterate_arlequin(SNPS_TWO_POPS_TEXT, raw=True): assert isinstance(entry, str)
def test_iterate_arlequin_with_dict_return(): """iterate_arlequin with default options""" for entry in iterate_arlequin(SNPS_TWO_POPS_TEXT): assert isinstance(entry, dict)