# Path: egasub/ega/entities/submission.py
# class Submission(object):
#     def __init__(self,title, description,submission_subset):
#         self.title = title
#         self.description = description
#         self.submission_subset = submission_subset
# 
#     def to_dict(self):
#         return {
#             "title" : self.title,
#             "description" : self.description,
#             "submissionSubset" : self.submission_subset.to_dict()
#             }
# 
#     def to_xml(self):
#         pass
# 
# Path: egasub/ega/entities/submission_subset_data.py
# class SubmissionSubsetData(object):
#     def __init__(self,analysis_ids, dac_ids, dataset_ids, experiment_ids, policy_ids, run_ids,
#                  sample_ids, study_ids):
#         self.analysis_ids = analysis_ids
#         self.dac_ids = dac_ids
#         self.dataset_ids = dataset_ids
#         self.experiment_ids = experiment_ids
#         self.policy_ids = policy_ids
#         self.run_ids = run_ids
#         self.sample_ids = sample_ids
#         self.study_ids = study_ids
# 
#     def to_dict(self):
#         return {
#             'analysisIds' : self.analysis_ids,
#             'dacIds' : self.dac_ids,
#             'datasetIds' : self.dataset_ids,
#             'experimentIds' : self.experiment_ids,
#             'policyIds' : self.policy_ids,
#             'runIds' : self.run_ids,
#             'sampleIds' : self.sample_ids,
#             'studyIds' : self.study_ids
#             }
# 
#     def to_xml(self):
#         pass
# 
#     @staticmethod
#     def create_empty():
#         return SubmissionSubsetData(None,None,None,None,None,None,None,None)


from egasub.ega.entities.submission import Submission
from egasub.ega.entities.submission_subset_data import SubmissionSubsetData

subset = SubmissionSubsetData([2,3],[5,2],[4,34],[54,1],[88,7],[1,3],[44,11],[2,11])
submission = Submission('a title', 'a description', subset)

def test_title():
    assert 'a title' == submission.title

def test_description():
    assert 'a description' == submission.description

def test_subsets():
    assert subset == submission.submission_subset


# Path: egasub/ega/entities/submission.py
# class Submission(object):
#     def __init__(self,title, description,submission_subset):
#         self.title = title
#         self.description = description
#         self.submission_subset = submission_subset
# 
#     def to_dict(self):
#         return {
#             "title" : self.title,
#             "description" : self.description,
#             "submissionSubset" : self.submission_subset.to_dict()
#             }
# 
#     def to_xml(self):
#         pass
# 
# Path: egasub/ega/entities/submission_subset_data.py
# class SubmissionSubsetData(object):
#     def __init__(self,analysis_ids, dac_ids, dataset_ids, experiment_ids, policy_ids, run_ids,
#                  sample_ids, study_ids):
#         self.analysis_ids = analysis_ids
#         self.dac_ids = dac_ids
#         self.dataset_ids = dataset_ids
#         self.experiment_ids = experiment_ids
#         self.policy_ids = policy_ids
#         self.run_ids = run_ids
#         self.sample_ids = sample_ids
#         self.study_ids = study_ids
# 
#     def to_dict(self):
#         return {
#             'analysisIds' : self.analysis_ids,
#             'dacIds' : self.dac_ids,
#             'datasetIds' : self.dataset_ids,
#             'experimentIds' : self.experiment_ids,
#             'policyIds' : self.policy_ids,
#             'runIds' : self.run_ids,
#             'sampleIds' : self.sample_ids,
#             'studyIds' : self.study_ids
#             }
# 
#     def to_xml(self):
#         pass
# 
#     @staticmethod
#     def create_empty():
#         return SubmissionSubsetData(None,None,None,None,None,None,None,None)


# Path: tests/submission/test_submission.py
from egasub.ega.entities.submission import Submission
from egasub.ega.entities.submission_subset_data import SubmissionSubsetData


subset = SubmissionSubsetData([2,3],[5,2],[4,34],[54,1],[88,7],[1,3],[44,11],[2,11])
submission = Submission('a title', 'a description', subset)

def test_title():
    assert 'a title' == submission.title

def test_description():
    assert 'a description' == submission.description

def test_subsets():
    assert subset == submission.submission_subset


def test_to_dict():