# Path: egasub/ega/entities/dac.py
# class Dac(object):
#     def __init__(self, title, contacts, alias=None, id_=None):
#         self.title = title
#         self.contacts = contacts
#         self.alias = alias
#         self.id = id_
# 
#     def to_dict(self):
#         return {
#             'title' : self.title,
#             'contacts' :  map(lambda contact: contact.to_dict(), self.contacts),
#             'alias': self.alias
#         }
# 
#     def to_xml(self):
#         pass
# 
# Path: egasub/ega/entities/contact.py
# class Contact(object):
#     def __init__(self,contact_name,email,organisation,phone_number):
#         self.contact_name = contact_name
#         self.email = email
#         self.organisation = organisation
#         self.phone_number = phone_number
# 
#     def to_dict(self):
#         return {
#             'contactName' : self.contact_name,
#             'email' : self.email,
#             'organisation' : self.organisation,
#             'phoneNumber' : self.phone_number
#             }
# 
#     def to_xml(self):
#         pass


from egasub.ega.entities.dac import Dac
from egasub.ega.entities.contact import Contact


contacts = [Contact('name 1','email 1','organisation 1','000-0000'),Contact('name 2','email 2',' organisation 2','000-0000')]
dac = Dac('a title',contacts)

def test_title():

# Path: egasub/ega/entities/dac.py
# class Dac(object):
#     def __init__(self, title, contacts, alias=None, id_=None):
#         self.title = title
#         self.contacts = contacts
#         self.alias = alias
#         self.id = id_
# 
#     def to_dict(self):
#         return {
#             'title' : self.title,
#             'contacts' :  map(lambda contact: contact.to_dict(), self.contacts),
#             'alias': self.alias
#         }
# 
#     def to_xml(self):
#         pass
# 
# Path: egasub/ega/entities/contact.py
# class Contact(object):
#     def __init__(self,contact_name,email,organisation,phone_number):
#         self.contact_name = contact_name
#         self.email = email
#         self.organisation = organisation
#         self.phone_number = phone_number
# 
#     def to_dict(self):
#         return {
#             'contactName' : self.contact_name,
#             'email' : self.email,
#             'organisation' : self.organisation,
#             'phoneNumber' : self.phone_number
#             }
# 
#     def to_xml(self):
#         pass


# Path: tests/test_dac.py
from egasub.ega.entities.dac import Dac
from egasub.ega.entities.contact import Contact



contacts = [Contact('name 1','email 1','organisation 1','000-0000'),Contact('name 2','email 2',' organisation 2','000-0000')]
dac = Dac('a title',contacts)

def test_title():

    assert 'a title' == dac.title