def make_addressbook():
    phone1 = addressbook.PhoneNumber()
    phone1.type = addressbook.PhoneType.MOBILE
    phone1.number = b'555-1212'
    phone2 = addressbook.PhoneNumber()
    phone2.type = addressbook.PhoneType.HOME
    phone2.number = b'555-1234'
    person = addressbook.Person()
    person.name = b'Alice'
    person.phones = [phone1, phone2]
    person.created_at = 1400000000
    ab = addressbook.AddressBook()
    ab.people = {person.name: person}
    return ab
def make_addressbook():
    phone1 = addressbook.PhoneNumber()
    phone1.type = addressbook.PhoneType.MOBILE
    phone1.number = b'555-1212'
    phone2 = addressbook.PhoneNumber()
    phone2.type = addressbook.PhoneType.HOME
    phone2.number = b'555-1234'
    person = addressbook.Person()
    person.name = b'Alice'
    person.phones = [phone1, phone2]
    person.created_at = 1400000000
    ab = addressbook.AddressBook()
    ab.people = {person.name: person}
    return ab