Ejemplo n.º 1
0
def test_parse_contact():
  assert hpd.parse_contact('data/RegistrationContact20150331.txt')[2]['RegistrationContactID'] == '11388605'
  assert hpd.parse_contact('data/RegistrationContact20150331.txt')[8]['FirstName'] == 'NEIL'
  # test for length
  assert len(hpd.parse_contact('data/RegistrationContact20150331.txt')) > 550000
Ejemplo n.º 2
0
def test_simple_owner_lookup():
  assert hpd.simple_owner_lookup(hpd.parse_contact('data/RegistrationContact20150331.txt'), lastname="ROJAS", firstname="STEVEN")[0]['RegistrationID'] == '138561'
  assert hpd.simple_owner_lookup(hpd.parse_contact('data/RegistrationContact20150331.txt'), lastname="ALIHAJDARAJ")[0]['RegistrationContactID'] == '13856113'