def register_domain(client, name, interval, contact_id):
    """
    Register domain with given name, interval
     and use same contact id for all contacts.
    """
    return client.domain.create_domain(
        name=name,
        interval=interval,
        is_managed=False,
        contacts=[
            {u'contact': contact_id, u'role': u'registrant'},
            {u'contact': contact_id, u'role': u'admin'},
            {u'contact': contact_id, u'role': u'tech'},
            {u'contact': contact_id, u'role': u'billing'}
        ]
    )