# Path: egasub/ega/entities/study.py
# class Study(object):
#     def __init__(self,alias,study_type_id, short_name, title, study_abstract, own_term, pub_med_ids,custom_tags, id_):
#         self.alias = alias
#         self.study_type_id = study_type_id
#         self.short_name = short_name
#         self.title = title
#         self.study_abstract = study_abstract
#         self.own_term = own_term
#         self.pub_med_ids = pub_med_ids
#         self.custom_tags = custom_tags
#         self.id = id_
# 
#     def to_dict(self):
#         return {
#             'alias' : self.alias,
#             'studyTypeId' : self.study_type_id,
#             'shortName' : self.short_name,
#             'title' : self.title,
#             'studyAbstract' : self.study_abstract,
#             'ownTerm' : self.own_term,
#             'pubMedIds' : self.pub_med_ids,
#             'customTags' : map(lambda tag: tag.to_dict(), self.custom_tags),
#             'id' : self.id
#             }
# 
# 
#     def to_xml(self):
#         pass
# 
# Path: egasub/ega/entities/custom_tag.py
# class CustomTag(object):
#     def __init__(self,tag, value):
#         self.tag=tag
#         self.value=value
# 
#     def to_dict(self):
#         return {
#             'tag' : self.tag,
#             'value' : self.value
#             }
# 
#     def to_xml(self):
#         pass


from egasub.ega.entities.study import Study
from egasub.ega.entities.custom_tag import CustomTag

tags = [CustomTag('tag1','value1'),CustomTag('tag2','value2')]
study = Study('an alias',33,'name','the title','the abstract','own term',[1,2,3],tags,'my_study')

def test_study_type_id():
    assert 33 == study.study_type_id

def test_short_name():
    assert 'name' == study.short_name

def test_title():
    assert 'the title' == study.title

def test_study_abstract():
    assert 'the abstract' == study.study_abstract

def test_own_term():
    assert 'own term' == study.own_term


# Path: egasub/ega/entities/study.py
# class Study(object):
#     def __init__(self,alias,study_type_id, short_name, title, study_abstract, own_term, pub_med_ids,custom_tags, id_):
#         self.alias = alias
#         self.study_type_id = study_type_id
#         self.short_name = short_name
#         self.title = title
#         self.study_abstract = study_abstract
#         self.own_term = own_term
#         self.pub_med_ids = pub_med_ids
#         self.custom_tags = custom_tags
#         self.id = id_
# 
#     def to_dict(self):
#         return {
#             'alias' : self.alias,
#             'studyTypeId' : self.study_type_id,
#             'shortName' : self.short_name,
#             'title' : self.title,
#             'studyAbstract' : self.study_abstract,
#             'ownTerm' : self.own_term,
#             'pubMedIds' : self.pub_med_ids,
#             'customTags' : map(lambda tag: tag.to_dict(), self.custom_tags),
#             'id' : self.id
#             }
# 
# 
#     def to_xml(self):
#         pass
# 
# Path: egasub/ega/entities/custom_tag.py
# class CustomTag(object):
#     def __init__(self,tag, value):
#         self.tag=tag
#         self.value=value
# 
#     def to_dict(self):
#         return {
#             'tag' : self.tag,
#             'value' : self.value
#             }
# 
#     def to_xml(self):
#         pass


# Path: tests/test_study.py
from egasub.ega.entities.study import Study
from egasub.ega.entities.custom_tag import CustomTag


tags = [CustomTag('tag1','value1'),CustomTag('tag2','value2')]
study = Study('an alias',33,'name','the title','the abstract','own term',[1,2,3],tags,'my_study')

def test_study_type_id():
    assert 33 == study.study_type_id

def test_short_name():
    assert 'name' == study.short_name

def test_title():
    assert 'the title' == study.title

def test_study_abstract():
    assert 'the abstract' == study.study_abstract

def test_own_term():
    assert 'own term' == study.own_term


def test_pub_med_ids():