예제 #1
0
#!/usr/bin/env python

import GedcomReader as reader
import GedcomStructs as structs
import sys


greader = reader.GedcomReader(sys.argv[1])

greader.parse()


individuals =  structs.ind_struct(greader.parsed)
families = structs.fam_struct(greader.parsed)
예제 #2
0
	def test_ind_struct_known_values(self):
		'''ind_struct should give known result with known input'''
		result = structs.ind_struct(self.known_parsed_ged_file)
		self.assertEqual(result, self.known_individual_struct)